<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1d3 20150301//EN" "http://jats.nlm.nih.gov/publishing/1.1d3/JATS-journalpublishing1.dtd">
<article article-type="research-article" dtd-version="1.1d3" xml:lang="en" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
<front>
<journal-meta>
<journal-id journal-id-type="nlm-ta">PLoS Comput Biol</journal-id>
<journal-id journal-id-type="publisher-id">plos</journal-id>
<journal-id journal-id-type="pmc">ploscomp</journal-id>
<journal-title-group>
<journal-title>PLOS Computational Biology</journal-title>
</journal-title-group>
<issn pub-type="ppub">1553-734X</issn>
<issn pub-type="epub">1553-7358</issn>
<publisher>
<publisher-name>Public Library of Science</publisher-name>
<publisher-loc>San Francisco, CA USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">PCOMPBIOL-D-22-01359</article-id>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Research Article</subject>
</subj-group>
<subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Cell biology</subject><subj-group><subject>Cellular types</subject><subj-group><subject>Animal cells</subject><subj-group><subject>Neurons</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Neuroscience</subject><subj-group><subject>Cellular neuroscience</subject><subj-group><subject>Neurons</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Physiology</subject><subj-group><subject>Electrophysiology</subject><subj-group><subject>Membrane potential</subject><subj-group><subject>Action potentials</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Physiology</subject><subj-group><subject>Electrophysiology</subject><subj-group><subject>Neurophysiology</subject><subj-group><subject>Action potentials</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Neuroscience</subject><subj-group><subject>Neurophysiology</subject><subj-group><subject>Action potentials</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Anatomy</subject><subj-group><subject>Nervous system</subject><subj-group><subject>Synapses</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Medicine and health sciences</subject><subj-group><subject>Anatomy</subject><subj-group><subject>Nervous system</subject><subj-group><subject>Synapses</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Physiology</subject><subj-group><subject>Electrophysiology</subject><subj-group><subject>Neurophysiology</subject><subj-group><subject>Synapses</subject></subj-group></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Neuroscience</subject><subj-group><subject>Neurophysiology</subject><subj-group><subject>Synapses</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Computer and information sciences</subject><subj-group><subject>Neural networks</subject></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Neuroscience</subject><subj-group><subject>Neural networks</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Physiology</subject><subj-group><subject>Electrophysiology</subject><subj-group><subject>Membrane potential</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Research and analysis methods</subject><subj-group><subject>Simulation and modeling</subject></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Neuroscience</subject><subj-group><subject>Cellular neuroscience</subject><subj-group><subject>Neuronal morphology</subject></subj-group></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Biology and life sciences</subject><subj-group><subject>Psychology</subject><subj-group><subject>Behavior</subject></subj-group></subj-group></subj-group><subj-group subj-group-type="Discipline-v3">
<subject>Social sciences</subject><subj-group><subject>Psychology</subject><subj-group><subject>Behavior</subject></subj-group></subj-group></subj-group></article-categories>
<title-group>
<article-title>Metamodelling of a two-population spiking neural network</article-title>
<alt-title alt-title-type="running-head">Metamodelling of a two-population spiking neural network</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-3610-5926</contrib-id>
<name name-style="western">
<surname>Skaar</surname> <given-names>Jan-Eirik W.</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role content-type="http://credit.niso.org/contributor-roles/investigation/">Investigation</role>
<role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
<role content-type="http://credit.niso.org/contributor-roles/validation/">Validation</role>
<role content-type="http://credit.niso.org/contributor-roles/visualization/">Visualization</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing – original draft</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"><sup>1</sup></xref>
<xref ref-type="corresp" rid="cor001">*</xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0002-9945-7208</contrib-id>
<name name-style="western">
<surname>Haug</surname> <given-names>Nicolai</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"><sup>1</sup></xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-1646-2472</contrib-id>
<name name-style="western">
<surname>Stasik</surname> <given-names>Alexander J.</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<xref ref-type="aff" rid="aff001"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff002"><sup>2</sup></xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<name name-style="western">
<surname>Einevoll</surname> <given-names>Gaute T.</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff002"><sup>2</sup></xref>
</contrib>
<contrib contrib-type="author" xlink:type="simple">
<name name-style="western">
<surname>Tøndel</surname> <given-names>Kristin</given-names></name>
<role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
<role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing – review &amp; editing</role>
<xref ref-type="aff" rid="aff001"><sup>1</sup></xref>
</contrib>
</contrib-group>
<aff id="aff001">
<label>1</label>
<addr-line>Faculty of Science and Technology, Norwegian University of Life Sciences, Ås, Norway</addr-line>
</aff>
<aff id="aff002">
<label>2</label>
<addr-line>Department of Physics, University of Oslo, Oslo, Norway</addr-line>
</aff>
<contrib-group>
<contrib contrib-type="editor" xlink:type="simple">
<name name-style="western">
<surname>Engel</surname> <given-names>Tatiana</given-names></name>
<role>Editor</role>
<xref ref-type="aff" rid="edit1"/>
</contrib>
</contrib-group>
<aff id="edit1">
<addr-line>Princeton University, UNITED STATES</addr-line>
</aff>
<author-notes>
<fn fn-type="conflict" id="coi001">
<p>The authors have declared that no competing interests exist.</p>
</fn>
<corresp id="cor001">* E-mail: <email xlink:type="simple">jan-eirik.welle.skaar@nmbu.no</email></corresp>
</author-notes>
<pub-date pub-type="collection">
<month>11</month>
<year>2023</year>
</pub-date>
<pub-date pub-type="epub">
<day>30</day>
<month>11</month>
<year>2023</year>
</pub-date>
<volume>19</volume>
<issue>11</issue>
<elocation-id>e1011625</elocation-id>
<history>
<date date-type="received">
<day>13</day>
<month>9</month>
<year>2022</year>
</date>
<date date-type="accepted">
<day>23</day>
<month>10</month>
<year>2023</year>
</date>
</history>
<permissions>
<copyright-year>2023</copyright-year>
<copyright-holder>Skaar et al</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="info:doi/10.1371/journal.pcbi.1011625"/>
<abstract>
<p>In computational neuroscience, hypotheses are often formulated as bottom-up mechanistic models of the systems in question, consisting of differential equations that can be numerically integrated forward in time. Candidate models can then be validated by comparison against experimental data. The model outputs of neural network models depend on both neuron parameters, connectivity parameters and other model inputs. Successful model fitting requires sufficient exploration of the model parameter space, which can be computationally demanding. Additionally, identifying degeneracy in the parameters, i.e. different combinations of parameter values that produce similar outputs, is of interest, as they define the subset of parameter values consistent with the data. In this computational study, we apply metamodels to a two-population recurrent spiking network of point-neurons, the so-called Brunel network. Metamodels are data-driven approximations to more complex models with more desirable computational properties, which can be run considerably faster than the original model. Specifically, we apply and compare two different metamodelling techniques, masked autoregressive flows (MAF) and deep Gaussian process regression (DGPR), to estimate the power spectra of two different signals; the population spiking activities and the local field potential. We find that the metamodels are able to accurately model the power spectra in the asynchronous irregular regime, and that the DGPR metamodel provides a more accurate representation of the simulator compared to the MAF metamodel. Using the metamodels, we estimate the posterior probability distributions over parameters given observed simulator outputs separately for both LFP and population spiking activities. We find that these distributions correctly identify parameter combinations that give similar model outputs, and that some parameters are significantly more constrained by observing the LFP than by observing the population spiking activities.</p>
</abstract>
<abstract abstract-type="summary">
<title>Author summary</title>
<p>In computational neuroscience, mechanistic models are used to simulate networks of neurons. These models exhibit complex dynamics, and the parameters of the neurons and connections between neurons shape the model’s behaviour. Due to the model complexity, running the simulations and fitting the model to experimental data can be computationally demanding. In this study, we train and compare different metamodelling techniques, data-driven approximations that are much faster to run, to two different signals generated by a two-population recurrent network model, the population spiking activities and the local field potential (LFP). Further, we invert the metamodels, and demonstrate that it can reliably find the different combinations of parameters that can give rise to an observed simulation output. We compare the accuracy of the metamodels on both the forward and inverse problem, and investigate to what degree the parameters are constrained by observing the two different signals.</p>
</abstract>
<funding-group>
<award-group id="award001">
<funding-source>
<institution-wrap>
<institution-id institution-id-type="funder-id">http://dx.doi.org/10.13039/501100005416</institution-id>
<institution>Norges Forskningsråd</institution>
</institution-wrap>
</funding-source>
<award-id>DigiBrain 248828</award-id>
<principal-award-recipient>
<name name-style="western">
<surname>Einevoll</surname> <given-names>Gaute T.</given-names></name>
</principal-award-recipient>
</award-group>
<award-group id="award002">
<funding-source>
<institution-wrap>
<institution-id institution-id-type="funder-id">http://dx.doi.org/10.13039/501100005416</institution-id>
<institution>Norges Forskningsråd</institution>
</institution-wrap>
</funding-source>
<award-id>CoBra 250128</award-id>
<principal-award-recipient>
<contrib-id authenticated="true" contrib-id-type="orcid">https://orcid.org/0000-0003-1646-2472</contrib-id>
<name name-style="western">
<surname>Stasik</surname> <given-names>Alexander J.</given-names></name>
</principal-award-recipient>
</award-group>
<award-group id="award003">
<funding-source>
<institution-wrap>
<institution-id institution-id-type="funder-id">http://dx.doi.org/10.13039/100010661</institution-id>
<institution>Horizon 2020 Framework Programme</institution>
</institution-wrap>
</funding-source>
<award-id>945539</award-id>
</award-group>
<award-group id="award004">
<funding-source>
<institution-wrap>
<institution-id institution-id-type="funder-id">http://dx.doi.org/10.13039/100010661</institution-id>
<institution>Horizon 2020 Framework Programme</institution>
</institution-wrap>
</funding-source>
<award-id>945539</award-id>
<principal-award-recipient>
<name name-style="western">
<surname>Einevoll</surname> <given-names>Gaute T.</given-names></name>
</principal-award-recipient>
</award-group>
<award-group id="award005">
<funding-source>
<institution-wrap>
<institution-id institution-id-type="funder-id">http://dx.doi.org/10.13039/100010661</institution-id>
<institution>Horizon 2020 Framework Programme</institution>
</institution-wrap>
</funding-source>
<award-id>754304</award-id>
</award-group>
<funding-statement>GTE and AJS received funding from the Research Council of Norway (DigiBrain 248828, CoBra 250128), <ext-link ext-link-type="uri" xlink:href="https://www.forskningsradet.no/" xlink:type="simple">https://www.forskningsradet.no/</ext-link>. GTE and HEP received funding from European Union’s Horizon 2020 Framework Programme for Research and Innovation under Grant Agreements No. 945539 (Human Brain Project SGA3). Simulations and analysis were performed on the DEEP system at Jülich Supercomputing Centre built with funding from the European Union’s Horizon 2020 Programme under Grant Agreement 754304 (DEEP-EST). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.</funding-statement>
</funding-group>
<counts>
<fig-count count="7"/>
<table-count count="4"/>
<page-count count="26"/>
</counts>
<custom-meta-group>
<custom-meta id="data-availability">
<meta-name>Data Availability</meta-name>
<meta-value>All relevant data are within the manuscript.</meta-value>
</custom-meta>
</custom-meta-group>
</article-meta>
</front>
<body>
<sec id="sec001" sec-type="intro">
<title>1 Introduction</title>
<p>Mechanistic modelling of neurons and networks of neurons based on the underlying biophysical principles is a well-established field and is an important part in bridging the scales between individual neurons and higher-level brain function [<xref ref-type="bibr" rid="pcbi.1011625.ref001">1</xref>–<xref ref-type="bibr" rid="pcbi.1011625.ref004">4</xref>]. Neuron models range in complexity from rate-based models, where spikes are not explicitly modelled, to point-neurons, where the detailed morphology of the individual neurons are collapsed into a single point, and further to multi-compartment models where the full morphology is accounted for. At the network level, even simple models exhibit complex dynamic behaviours depending on both neuron dynamics and network connectivity [<xref ref-type="bibr" rid="pcbi.1011625.ref005">5</xref>]. A question modellers face is how the network model can be parameterized in order to produce a specific behaviour, and how sensitive the behaviour is to changes in model parameter values. As mechanistic models can be expensive to run and typically have many parameters, that is, high-dimensional parameter spaces, accurately sampling the space of model behaviours is a nontrivial problem.</p>
<p>Mechanistic models of dynamical systems typically consist of a set of differential equations that can be integrated forward in time. The modeller may be interested in a subset of the model’s behaviours, e.g. the state variables of the model, such as membrane potentials, synaptic conductances or currents, individual neuron behaviours such as spike times, or aggregated statistics such as population firing rates, local field potentials [<xref ref-type="bibr" rid="pcbi.1011625.ref006">6</xref>], or current source densities. The user specifies a set of parameters, which will determine the model’s behaviour. If the model is deterministic (no random variables are involved), the output will be a unique function of its parameters and initial conditions. If the model is probabilistic (one or more random variables affect the model), the output will no longer be a unique function of the parameters and initial conditions, but will instead follow a probability distribution over possible outputs.</p>
<p>Conceptually, a mechanistic model can be thought of as a function <inline-formula id="pcbi.1011625.e001"><alternatives><graphic id="pcbi.1011625.e001g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e001" xlink:type="simple"/><mml:math display="inline" id="M1"><mml:mi mathvariant="script">M</mml:mi></mml:math></alternatives></inline-formula> that takes input values and returns output values,
<disp-formula id="pcbi.1011625.e002"><alternatives><graphic id="pcbi.1011625.e002g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e002" xlink:type="simple"/><mml:math display="block" id="M2"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mtext>output</mml:mtext> <mml:mo>=</mml:mo> <mml:mi mathvariant="script">M</mml:mi> <mml:mo>(</mml:mo> <mml:mtext>input</mml:mtext> <mml:mo>)</mml:mo> <mml:mspace width="4pt"/><mml:mtext>.</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></disp-formula></p>
<p>If the model is stochastic, there is a distribution over possible outputs, which typically does not have a closed-form expression, since explicitly evaluating it would require integrating over all possible internal model states. <italic>Metamodels</italic> are data-driven statistical models that take a set of inputs and outputs generated by a mechanistic model, and learn an approximation of <inline-formula id="pcbi.1011625.e003"><alternatives><graphic id="pcbi.1011625.e003g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e003" xlink:type="simple"/><mml:math display="inline" id="M3"><mml:mi mathvariant="script">M</mml:mi></mml:math></alternatives></inline-formula> over a restricted part of its domain [<xref ref-type="bibr" rid="pcbi.1011625.ref007">7</xref>]. The metamodel can provide either a point-estimate of the model output, or a distribution over possible outputs. In the case of stochastic models, the latter case has the advantage of providing an approximation of the intractable probability distribution over simulator outputs. The number of samples needed to achieve sufficient accuracy over the domain of interest will depend on the dimensionality of the inputs, on how the function <inline-formula id="pcbi.1011625.e004"><alternatives><graphic id="pcbi.1011625.e004g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e004" xlink:type="simple"/><mml:math display="inline" id="M4"><mml:mi mathvariant="script">M</mml:mi></mml:math></alternatives></inline-formula> changes with respect to the input dimensions, and on whether it has a structure that the metamodel is able to capture.</p>
<p>The inputs can in principle be anything that changes the model behaviour, e.g. model parameters or some other specific model input. As the volume of the parameter space increases exponentially with the number of parameters, densely sampling high-dimensional parameter spaces is very costly. Metamodels can provide a compact representation of the model over the domain, where the density of sampling required can be determined by evaluating the model on a test data set. Metamodels can also provide simpler interpretations of the model, identify the importance of individual input dimensions, and give an overview of the original model’s behavioral repertoire, i.e. a statistical depiction of the possible outputs the model can produce under a range of input conditions [<xref ref-type="bibr" rid="pcbi.1011625.ref008">8</xref>]. Metamodels can be applied in either direction, from model input to model output, or vice versa, directly approximating the inverse model.</p>
<p>For stochastic models, the distribution over model outputs will depend on the parameter values and possibly other model inputs, giving a conditional probability <italic>p</italic>(<bold>x</bold>|<bold><italic>θ</italic></bold>), often called the <italic>model likelihood</italic>, where <bold>x</bold> is the model output and <bold><italic>θ</italic></bold> represents model parameters and other types of inputs. Since different model inputs possibly can give rise to the same model outputs, there is also a distribution over model inputs that can give rise to the same model outputs, <italic>p</italic>(<bold><italic>θ</italic></bold>|<bold>x</bold>), often called the <italic>posterior distribution</italic>.</p>
<p>Estimating this posterior distribution by running simulations, without direct access to the model likelihood, has been the focus of work such as Approximate Bayesian computation (ABC) [<xref ref-type="bibr" rid="pcbi.1011625.ref009">9</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref010">10</xref>], Sequential Neural Posterior Estimation (SNPE) [<xref ref-type="bibr" rid="pcbi.1011625.ref011">11</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref012">12</xref>] and Sequential Neural Likelihood Estimation (SNLE) [<xref ref-type="bibr" rid="pcbi.1011625.ref013">13</xref>]. SNPE directly models the posterior, typically as a normalizing flow parameterized by a neural network, while SNLE models the likelihood, and infers the posterior in a separate step. The present work focuses on creating an approximation to the likelihood, as in the first step in SNLE, and can thus also be used to infer posterior distributions in the same manner. These methods can also be focused on estimating the posterior probability <italic>p</italic>(<bold><italic>θ</italic></bold>|<bold>x</bold><sub>0</sub>) for a specific observed output <bold>x</bold><sub>0</sub>, and generating a local model of the posterior distribution around that point by iteratively running simulations where the posterior density is believed to be high. This approach can be viewed as a metamodel that is trained locally around a specific point of interest in the parameter space. In this case, the metamodel will not have to be as flexible as in the case where one is interested in a much larger volume of the parameter space.</p>
<p>Neuronal networks typically exhibit stochastic dynamics, where input currents and firing may be stochastic, and the network connectivity and initial conditions can be drawn randomly. The network activity is also nonlinearly dependent on the precise history of the activity [<xref ref-type="bibr" rid="pcbi.1011625.ref014">14</xref>]. This makes direct metamodelling of time series data challenging, as different instantiations of the same model will produce different results, which the metamodel will have to account for. Simplified mechanistic models of population rates have been developed, ranging from models based on mean-field theory [<xref ref-type="bibr" rid="pcbi.1011625.ref005">5</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref014">14</xref>] where the number of neurons is assumed to be infinite and finite-size effects are disregarded, to ones where finite-size effects are fully accounted for [<xref ref-type="bibr" rid="pcbi.1011625.ref015">15</xref>], but where stochastic firing of neurons and full connectivity between all neurons are assumed.</p>
<p>In the present work, we train metamodels to approximate the distribution over the power spectra of the population spiking activities and local field potential (LFP), based on the model parameters of the Brunel network [<xref ref-type="bibr" rid="pcbi.1011625.ref005">5</xref>], comprising an excitatory and an inhibitory population of recurrently connected point-neurons. The metamodels approximate the conditional probability distribution <italic>p</italic>(<bold>x</bold>|<bold><italic>θ</italic></bold>), where <bold>x</bold> is the power spectrum of either the population spiking activity or the LFP, and <bold><italic>θ</italic></bold> is the biological parameters of the spiking network. The LFP, the low-frequency part of extracellular potentials, largely represents how synaptic inputs are processed in the dendrites [<xref ref-type="bibr" rid="pcbi.1011625.ref006">6</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref016">16</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref017">17</xref>], so we chose to include both signals as they in a sense represent the incoming and outgoing signals for a population, and it offers the opportunity to compare the information carried by the two different signals. <xref ref-type="fig" rid="pcbi.1011625.g001">Fig 1</xref> shows an overview of the modelling scheme we employ.</p>
<fig id="pcbi.1011625.g001" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g001</object-id>
<label>Fig 1</label>
<caption>
<title/>
<p>Model overview: Given a set of parameters <bold><italic>θ</italic></bold>, a network of point-neurons are simulated, from which the population spiking activities <italic>ν</italic>(<italic>t</italic>) are computed (top). With morphological neurons spatially extended in a column, the synaptic spiking activities from the point-neuron network can be ‘replayed’ on the morphological neurons, and the resulting local field potential <italic>ϕ</italic>(<bold>r</bold>, <italic>t</italic>) at 6 locations is computed (bottom). Note that only one excitatory and one inhibitory neuron is shown, in simulation there is one for each point-neuron. The power density spectra <italic>P</italic><sub><italic>ν</italic></sub>(<italic>t</italic>) and <italic>P</italic><sub><italic>ϕ</italic></sub>(<bold>r</bold>, <italic>t</italic>), of the population spiking activities and local field potential respectively, are also computed. The metamodel M directly models the power spectra given the parameter set, or the parameters given observed power spectra.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g001" xlink:type="simple"/>
</fig>
<p>We train metamodels based on Gaussian process regression (GPR) [<xref ref-type="bibr" rid="pcbi.1011625.ref018">18</xref>], and compare them to a masked autoregressive flow (MAF) [<xref ref-type="bibr" rid="pcbi.1011625.ref019">19</xref>], a model often used for density estimation tasks. Both models can be trained to approximate the conditional probability densities of the simulator. Due to advances in sparse approximations to Gaussian process (GP) models, allowing them to be used on much larger data sets [<xref ref-type="bibr" rid="pcbi.1011625.ref020">20</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref021">21</xref>], and extensions to deep models (DGPRs) [<xref ref-type="bibr" rid="pcbi.1011625.ref022">22</xref>–<xref ref-type="bibr" rid="pcbi.1011625.ref024">24</xref>], which gives them increased flexibility, GPs provide a powerful class of nonparametric regression and classification models. MAF is a type of normalizing flow, a parametric model based on making successive invertible transformations, typically based on neural networks, to a simple base distribution, typically assumed to be Gaussian. It can be trained either as a conditional distribution, where the neural networks take an additional input representing the condition, or as a simpler distribution without any conditioning. Models representing conditional distributions are particularly useful as a metamodel for systems with stochastic dynamics, since that implies that there is a distribution over possible outputs that has to be modelled. We additionally train a Hierarchical Cluster-based Partial Least Squares Regression [<xref ref-type="bibr" rid="pcbi.1011625.ref025">25</xref>](HCPLSR), a model that has been used previously for metamodelling of biological systems but only gives a point-estimate of the simulator output [<xref ref-type="bibr" rid="pcbi.1011625.ref008">8</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref026">26</xref>].</p>
<p>We show that the simulator can be accurately captured by metamodels trained on around 1000 example simulations, and that for the present situation, the DGPR metamodel is able to more accurately estimate the function described by the simulator, compared to the MAF metamodel. We find that posterior distributions estimated from the DGPR metamodel is more accurate compared to the ones estimated from the MAF metamodel, but takes longer to compute. We estimate the posterior distributions separately for DGPR metamodels trained on the population spiking activities and the LFP, for a variety of different simulation outputs, and find that some parameters are significantly more constrained by observing the LFP compared to the population spiking activities, while for others both signals are roughly equally informative. We also investigate the pairwise correlations of the posterior distributions over the domain on which the metamodels were trained.</p>
</sec>
<sec id="sec002" sec-type="materials|methods">
<title>2 Methods</title>
<sec id="sec003">
<title>2.1 Simulations</title>
<p>The network considered in this study consists of two populations, one with excitatory neurons and one with inhibitory neurons, of size <italic>N</italic><sub><italic>E</italic></sub> and <italic>N</italic><sub><italic>I</italic></sub> respectively. The neurons are modelled as leaky integrate-and-fire neurons, connected with alpha-shaped current-based synapses described by Eq 2 in <xref ref-type="table" rid="pcbi.1011625.t001">Table 1</xref>. The sub-threshold dynamics are described by a first-order differential equation given by Eq 1 in <xref ref-type="table" rid="pcbi.1011625.t001">Table 1</xref>. When its membrane potential reaches a firing threshold <italic>V</italic><sub>thr</sub>, the neuron fires and and the synapses on all its postsynaptic neurons are activated after a time <italic>t</italic><sub>d</sub>. After firing, the membrane potential of a neuron is clamped to a voltage <italic>V</italic><sub>reset</sub> for a refractory period <italic>t</italic><sub>ref</sub>. Each neuron receives synapses from a fraction <italic>ϵ</italic> of all other local neurons in the network. Post-synaptic currents from excitatory synapses have a peak amplitude <italic>J</italic>, and post-synaptic currents from inhibitory synapses have a peak amplitude of −<italic>gJ</italic>. Both types of synapses share a synaptic time constant of <italic>τ</italic><sub>syn</sub>. Additionally, each neuron receives independent excitatory input from an external population modelled as a Poisson process with fixed rate <italic>ν</italic><sub>ext</sub>. This rate is determined by the parameter <inline-formula id="pcbi.1011625.e005"><alternatives><graphic id="pcbi.1011625.e005g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e005" xlink:type="simple"/><mml:math display="inline" id="M5"><mml:mrow><mml:mi>η</mml:mi> <mml:mo>=</mml:mo> <mml:mfrac><mml:msub><mml:mi>ν</mml:mi> <mml:mtext>ext</mml:mtext></mml:msub> <mml:msub><mml:mi>ν</mml:mi> <mml:mtext>thr</mml:mtext></mml:msub></mml:mfrac></mml:mrow></mml:math></alternatives></inline-formula>, where <italic>ν</italic><sub>thr</sub> = <italic>V</italic><sub>thr</sub><italic>C</italic><sub>m</sub>/(<italic>Jτ</italic><sub>m</sub><italic>eτ</italic><sub>syn</sub>), the minimum constant input rate that will drive the neuron to its threshold. Since the synaptic strength and synaptic time constant both contribute multiplicatively to the total charge transfer during a synaptic event, we opted to parameterize the synaptic strength in terms of the total charge transfer during a synaptic event <italic>Q</italic><sub>s</sub> = <italic>τ</italic><sub>syn</sub><italic>J</italic>. A complete description of the point-network model is given in <xref ref-type="table" rid="pcbi.1011625.t001">Table 1</xref>.</p>
<table-wrap id="pcbi.1011625.t001" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.t001</object-id>
<label>Table 1</label>
<caption>
<title>Description of point-neuron network following the guidelines of [<xref ref-type="bibr" rid="pcbi.1011625.ref033">33</xref>].</title>
</caption>
<alternatives>
<graphic id="pcbi.1011625.t001g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.t001" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<tbody>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>A</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Model summary</bold></td>
</tr>
<tr>
<td align="left"><bold>Populations</bold></td>
<td align="left">One excitatory, one inhibitory</td>
</tr>
<tr>
<td align="left"><bold>Network model</bold></td>
<td align="left">Fixed in-degree, random convergent connections</td>
</tr>
<tr>
<td align="left"><bold>Neuron model</bold></td>
<td align="left">Local populations: leaky integrate-and-fire, external: Poisson generator</td>
</tr>
<tr>
<td align="left"><bold>Synapse model</bold></td>
<td align="left">Current-based alpha-shaped, fixed strength for each population</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>B</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Populations</bold></td>
</tr>
<tr>
<td align="left" rowspan="2"><bold>Names</bold></td>
<td align="left">Excitatory: E</td>
</tr>
<tr>
<td align="left">Inhibitory: I</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>C</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Network model</bold></td>
</tr>
<tr>
<td align="left"><bold>Connectivity</bold></td>
<td align="left">Fixed number of incoming connections <italic>C</italic><sub>E</sub> = <italic>ϵN</italic><sub>E</sub> from excitatory population and <italic>C</italic><sub>I</sub> = <italic>ϵN</italic><sub>I</sub> from inhibitory population</td>
</tr>
<tr>
<td align="left"><bold>Input</bold></td>
<td align="left">Poissonian synaptic input with fixed rate <italic>ν</italic><sub>ext</sub> for each neuron</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>D</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Neuron model</bold></td>
</tr>
<tr>
<td align="left"><bold>Type</bold></td>
<td align="left">Leaky integrate-and-fire neuron</td>
</tr>
<tr>
<td align="left"><bold>Description</bold></td>
<td align="left">Dynamics of membrane potential <italic>V</italic><sub><italic>i</italic></sub>(<italic>t</italic>) (neuron <italic>i</italic> ∈ [1, <italic>N</italic>]):
<list list-type="simple"><list-item><p>- Spike emission at times <inline-formula id="pcbi.1011625.e006"><alternatives><graphic id="pcbi.1011625.e006g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e006" xlink:type="simple"/><mml:math display="inline" id="M6"><mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msubsup></mml:math></alternatives></inline-formula> with <inline-formula id="pcbi.1011625.e007"><alternatives><graphic id="pcbi.1011625.e007g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e007" xlink:type="simple"/><mml:math display="inline" id="M7"><mml:mrow><mml:msub><mml:mi>V</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>≥</mml:mo> <mml:msub><mml:mi>V</mml:mi> <mml:mtext>thr</mml:mtext></mml:msub></mml:mrow></mml:math></alternatives></inline-formula></p></list-item> <list-item><p>- Subthreshold dynamics:</p>
<p><inline-formula id="pcbi.1011625.e008"><alternatives><graphic id="pcbi.1011625.e008g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e008" xlink:type="simple"/><mml:math display="inline" id="M8"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>τ</mml:mi> <mml:mi mathvariant="normal">m</mml:mi></mml:msub> <mml:mfrac><mml:mrow><mml:mi mathvariant="normal">d</mml:mi> <mml:msub><mml:mi>V</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow> <mml:mrow><mml:mi mathvariant="normal">d</mml:mi> <mml:mi>t</mml:mi></mml:mrow></mml:mfrac> <mml:mo>=</mml:mo> <mml:mo>-</mml:mo> <mml:msub><mml:mi>V</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>+</mml:mo> <mml:msub><mml:mi>R</mml:mi> <mml:mi mathvariant="normal">m</mml:mi></mml:msub> <mml:msub><mml:mi>I</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mspace width="1em"/><mml:mo>∀</mml:mo> <mml:mi>l</mml:mi> <mml:mo>:</mml:mo> <mml:mspace width="0.166667em"/><mml:mi>t</mml:mi><mml:mspace width="2pt"/><mml:mo>∉</mml:mo><mml:mspace width="2pt"/><mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msubsup> <mml:mo>,</mml:mo> <mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msubsup> <mml:mo>+</mml:mo> <mml:msub><mml:mi>t</mml:mi> <mml:mtext>ref</mml:mtext></mml:msub> <mml:mo>]</mml:mo></mml:mrow><mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></inline-formula></p>
<p>where <italic>τ</italic><sub>m</sub> is the membrane time constant, <italic>V</italic> the membrane potential, <italic>R</italic><sub>m</sub> the membrane resistance, and <italic>I</italic> the synaptic inputs.</p></list-item> <list-item><p>- Reset + refractoriness: <italic>V</italic><sub><italic>i</italic></sub>(<italic>t</italic>) = <italic>V</italic><sub>reset</sub> <inline-formula id="pcbi.1011625.e009"><alternatives><graphic id="pcbi.1011625.e009g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e009" xlink:type="simple"/><mml:math display="inline" id="M9"><mml:mrow><mml:mo>∀</mml:mo> <mml:mi>l</mml:mi> <mml:mo>:</mml:mo> <mml:mspace width="0.166667em"/><mml:mi>t</mml:mi> <mml:mo>∈</mml:mo> <mml:mo>(</mml:mo> <mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msubsup> <mml:mo>,</mml:mo> <mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msubsup> <mml:mo>+</mml:mo> <mml:msub><mml:mi>t</mml:mi> <mml:mtext>ref</mml:mtext></mml:msub> <mml:mo>]</mml:mo></mml:mrow></mml:math></alternatives></inline-formula></p></list-item></list> <break/>Exact integration with temporal resolution <italic>dt</italic><break/>Uniform distribution of membrane potentials <italic>V</italic><sub><italic>i</italic></sub> ∈ [<italic>V</italic><sub>reset</sub>, <italic>V</italic><sub>thr</sub>) at <italic>t</italic> = 0</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>E</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Synapse model</bold></td>
</tr>
<tr>
<td align="left"><bold>Type</bold></td>
<td align="left">Alpha-shaped postsynaptic current</td>
</tr>
<tr>
<td align="left"><bold>Description</bold></td>
<td align="left">
<inline-formula id="pcbi.1011625.e010">
<alternatives>
<graphic id="pcbi.1011625.e010g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e010" xlink:type="simple"/>
<mml:math display="inline" id="M10">
<mml:mtable displaystyle="true">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mrow>
<mml:msub>
<mml:mi>R</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:msub>
<mml:msub>
<mml:mi>I</mml:mi>
<mml:mi>i</mml:mi>
</mml:msub>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:msub>
<mml:mi>τ</mml:mi>
<mml:mi mathvariant="normal">m</mml:mi>
</mml:msub>
<mml:munder>
<mml:mo>∑</mml:mo>
<mml:mi>j</mml:mi>
</mml:munder>
<mml:mfrac>
<mml:msub>
<mml:mi>J</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:msub>
<mml:mi>τ</mml:mi>
<mml:mi>s</mml:mi>
</mml:msub>
</mml:mfrac>
<mml:munder>
<mml:mo>∑</mml:mo>
<mml:mi>l</mml:mi>
</mml:munder>
<mml:mi>H</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>-</mml:mo>
<mml:msubsup>
<mml:mi>t</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>j</mml:mi>
</mml:msubsup>
<mml:mo>-</mml:mo>
<mml:msub>
<mml:mi>t</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
</mml:msub>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mi>t</mml:mi>
<mml:msup>
<mml:mi>e</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>-</mml:mo>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>-</mml:mo>
<mml:msubsup>
<mml:mi>t</mml:mi>
<mml:mi>l</mml:mi>
<mml:mi>j</mml:mi>
</mml:msubsup>
<mml:mo>-</mml:mo>
<mml:msub>
<mml:mi>t</mml:mi>
<mml:mi mathvariant="normal">d</mml:mi>
</mml:msub>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mi>τ</mml:mi>
<mml:mtext>syn</mml:mtext>
</mml:msub>
</mml:mrow>
</mml:msup>
<mml:mo>,</mml:mo>
<mml:mo> </mml:mo>
<mml:mo>(</mml:mo>
<mml:mn>2</mml:mn>
<mml:mo>)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</alternatives>
</inline-formula><break/>where the first sum is over all the presynaptic neurons <italic>j</italic>, including the external ones, and the second sum is over the spike times of those neurons. <inline-formula id="pcbi.1011625.e011"><alternatives><graphic id="pcbi.1011625.e011g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e011" xlink:type="simple"/><mml:math display="inline" id="M11"><mml:msubsup><mml:mi>t</mml:mi> <mml:mi>l</mml:mi> <mml:mi>j</mml:mi></mml:msubsup></mml:math></alternatives></inline-formula> is the <italic>l</italic>th spike of presynaptic neuron <italic>j</italic>, and <italic>t</italic><sub>d</sub> is the synaptic delay. <italic>H</italic> denotes the Heaviside step function.<break/><inline-formula id="pcbi.1011625.e012">
<alternatives>
<graphic id="pcbi.1011625.e012g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e012" xlink:type="simple"/>
<mml:math display="inline" id="M12">
<mml:mrow>
<mml:msub>
<mml:mi>J</mml:mi>
<mml:mrow>
<mml:mi>i</mml:mi>
<mml:mi>j</mml:mi>
</mml:mrow>
</mml:msub>
<mml:mo>=</mml:mo>
<mml:mo>{</mml:mo>
<mml:mtable>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mrow>
<mml:mi>J</mml:mi>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>∈</mml:mo>
<mml:mo>{</mml:mo>
<mml:mi>E</mml:mi>
<mml:mo>,</mml:mo>
<mml:msub>
<mml:mi>E</mml:mi>
<mml:mtext>ext</mml:mtext>
</mml:msub>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
<mml:mtr>
<mml:mtd columnalign="left">
<mml:mrow>
<mml:mo>-</mml:mo>
<mml:mi>g</mml:mi>
<mml:mi>J</mml:mi>
<mml:mo>,</mml:mo>
</mml:mrow>
</mml:mtd>
<mml:mtd columnalign="left">
<mml:mrow>
<mml:mi>j</mml:mi>
<mml:mo>∈</mml:mo>
<mml:mo>{</mml:mo>
<mml:mi>I</mml:mi>
<mml:mo>}</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:mrow>
</mml:math>
</alternatives>
</inline-formula><break/>Multapses and autapses are allowed.</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
<p>Ten model parameters were uniformly randomly sampled, using Latin Hypercube sampling [<xref ref-type="bibr" rid="pcbi.1011625.ref027">27</xref>], which is a stratified sampling strategy suitable for sampling in high-dimensional systems. A complete list of model parameters and their values and ranges are given in <xref ref-type="table" rid="pcbi.1011625.t002">Table 2</xref>. 10000 simulations were run using the NEST simulator [<xref ref-type="bibr" rid="pcbi.1011625.ref028">28</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref029">29</xref>], comprising both the training data set and the test data set. The regions of the parameter space giving strongly synchronous firing, discussed in [<xref ref-type="bibr" rid="pcbi.1011625.ref005">5</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref030">30</xref>], were avoided by avoiding unbalanced regimes caused by low inhibition, and high external input (<italic>η</italic> &gt; 3.5). Additionally, a small number of simulations, which were found to be strongly synchronous were removed, making up roughly 3% of the total simulations. These were found by the following ad hoc criteria: more than 150 time bins of 1 ms in which more than 10% of the neurons fire, as well as more than 500 time bins in which fewer than 0.25% of the neurons fire. See Section 3.1 and Section 4 for further discussion. For 100 of the simulation outputs in the test data set, an additional 50 simulations were run with parameters sampled from the estimated posterior distributions (see Sections 2.4 and 3.4). For each simulation, the LFP was computed as described in the next section.</p>
<table-wrap id="pcbi.1011625.t002" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.t002</object-id>
<label>Table 2</label>
<caption>
<title>Point-neuron network parameters.</title>
</caption>
<alternatives>
<graphic id="pcbi.1011625.t002g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.t002" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<tbody>
<tr>
<td align="center" colspan="3" style="background-color:#E5E5E5"><bold>Point-neuron parameters</bold></td>
</tr>
<tr>
<td align="left">Symbol</td>
<td align="left">Description</td>
<td align="left">Value</td>
</tr>
<tr>
<td align="left"><italic>η</italic></td>
<td align="left">relative amount of external input</td>
<td align="left">[1.0, 3.5]</td>
</tr>
<tr>
<td align="left"><italic>g</italic></td>
<td align="left">relative strength of inhibitory synapses</td>
<td align="left">[4.5, 8.0]</td>
</tr>
<tr>
<td align="left"><italic>Q</italic><sub>s</sub></td>
<td align="left">total synaptic charge transfer</td>
<td align="left">[25 − 100] fC</td>
</tr>
<tr>
<td align="left"><italic>τ</italic><sub>m</sub></td>
<td align="left">membrane time constant</td>
<td align="left">[15–30] ms</td>
</tr>
<tr>
<td align="left"><italic>C</italic><sub>m</sub></td>
<td align="left">membrane capacitance</td>
<td align="left">[100 − 300] pF</td>
</tr>
<tr>
<td align="left"><italic>t</italic><sub>d</sub></td>
<td align="left">synaptic delay period</td>
<td align="left">[0.1 − 3.0] ms</td>
</tr>
<tr>
<td align="left"><italic>t</italic><sub>ref</sub></td>
<td align="left">absolute refractory period</td>
<td align="left">[0.1 − 4.0] ms</td>
</tr>
<tr>
<td align="left"><italic>τ</italic><sub>syn</sub></td>
<td align="left">synaptic time constant</td>
<td align="left">[1.0 − 8.0] ms</td>
</tr>
<tr>
<td align="left"><italic>V</italic><sub>thr</sub></td>
<td align="left">firing threshold</td>
<td align="left">[15 − 25] mV</td>
</tr>
<tr>
<td align="left"><italic>V</italic><sub>reset</sub></td>
<td align="left">reset membrane potential</td>
<td align="left">[0 − 10] mV</td>
</tr>
<tr>
<td align="left"><italic>E</italic><sub><italic>L</italic></sub></td>
<td align="left">passive leak reversal potential</td>
<td align="left">0 mV</td>
</tr>
<tr>
<td align="left"><italic>N</italic><sub>E</sub></td>
<td align="left">number of excitatory neurons</td>
<td align="left">8000</td>
</tr>
<tr>
<td align="left"><italic>N</italic><sub>I</sub></td>
<td align="left">number of inhibitory neurons</td>
<td align="left">2000</td>
</tr>
<tr>
<td align="left"><italic>ϵ</italic></td>
<td align="left">connection probability</td>
<td align="left">0.1</td>
</tr>
<tr>
<td align="left"><italic>C</italic><sub>E</sub></td>
<td align="left">number of incoming excitatory synapses</td>
<td align="left">800</td>
</tr>
<tr>
<td align="left"><italic>C</italic><sub>I</sub></td>
<td align="left">number of incoming inhibitory synapses</td>
<td align="left">200</td>
</tr>
<tr>
<td align="center" colspan="3" style="background-color:#E5E5E5"><bold>Simulation parameters</bold></td>
</tr>
<tr>
<td align="left" colspan="3">Training and test data</td>
</tr>
<tr>
<td align="left"><italic>T</italic><sub>sim</sub></td>
<td align="left">simulation duration</td>
<td align="left">10500 ms</td>
</tr>
<tr>
<td align="left"><italic>T</italic><sub>transient</sub></td>
<td align="left">start-up transient duration</td>
<td align="left">500 ms</td>
</tr>
<tr>
<td align="left"><italic>dt</italic></td>
<td align="left">time resolution</td>
<td align="left">0.1 ms</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
<p>The population spiking activities were saved at a resolution of 1 ms as the sum of all spike trains in the populations. The power spectrum, defined as [<italic>ψ</italic>](<italic>f</italic>)*[<italic>ψ</italic>](<italic>f</italic>)/<italic>T</italic> for some signal <italic>ψ</italic>(<italic>t</italic>), where [<italic>ψ</italic>](<italic>f</italic>) denotes the Fourier transform of <italic>ψ</italic>, and <italic>T</italic> is the window length, was estimated using Welch’s method [<xref ref-type="bibr" rid="pcbi.1011625.ref031">31</xref>] for both the population spiking activities and the LFP. The implementation in the Python SciPy [<xref ref-type="bibr" rid="pcbi.1011625.ref032">32</xref>] package (<monospace specific-use="no-wrap">scipy.signal.welch</monospace>) was used, with a Hann window of length 256 and an overlap of 128. The metamodels are trained on the base 10 logarithm of these power spectra.</p>
</sec>
<sec id="sec004">
<title>2.2 Forward-model predictions of LFPs</title>
<p>In order to compute local field potentials (LFPs) from the point-neuron network, we utilized the hybrid LFP scheme [<xref ref-type="bibr" rid="pcbi.1011625.ref034">34</xref>] (<ext-link ext-link-type="uri" xlink:href="http://github.com/INM-6/hybridLFPy" xlink:type="simple">github.com/INM-6/hybridLFPy</ext-link>), which allows for the decoupling of the simulation of spiking dynamics (here computed using point neurons) and predictions of extracellularly recorded LFPs. The latter part relies on reconstructed cell morphologies and multi-compartment modelling in combination with an electrostatic forward model. A complete description of the scheme (including the biophysics-based forward model) can be found in [<xref ref-type="bibr" rid="pcbi.1011625.ref034">34</xref>], and a concise description of the multi-compartment neuron model is given in <xref ref-type="table" rid="pcbi.1011625.t003">Table 3</xref>. The parameters used are given in <xref ref-type="table" rid="pcbi.1011625.t004">Table 4</xref>.</p>
<table-wrap id="pcbi.1011625.t003" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.t003</object-id>
<label>Table 3</label>
<caption>
<title>Description of multi-compartment neuron populations.</title>
</caption>
<alternatives>
<graphic id="pcbi.1011625.t003g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.t003" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<tbody>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>A</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Model summary</bold></td>
</tr>
<tr>
<td align="left"><bold>Populations</bold></td>
<td align="left">Local excitatory and inhibitory populations</td>
</tr>
<tr>
<td align="left"><bold>Neuron model</bold></td>
<td align="left">Multi-compartment neurons with passive cable formalism</td>
</tr>
<tr>
<td align="left"><bold>Synapse model</bold></td>
<td align="left">Current-based alpha-function shaped, fixed strength for each population</td>
</tr>
<tr>
<td align="left"><bold>Topology</bold></td>
<td align="left">Cylinder of 1 mm<sup>2</sup> cross-section with somas of both populations positioned in single layer of thickness 0.1 mm.</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>B</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Neuron models</bold></td>
</tr>
<tr>
<td align="left"><bold>Type</bold></td>
<td align="left">Reconstructed multi-compartment morphologies with passive electrical properties</td>
</tr>
<tr>
<td align="left"><bold>Description</bold></td>
<td align="left">For each neuron, the membrane potential <italic>V</italic><sub><italic>n</italic></sub> of compartment <italic>n</italic> connected to <italic>m</italic> other compartments <italic>k</italic>, with a surface area <italic>a</italic><sub><italic>n</italic></sub>, length <italic>l</italic><sub><italic>n</italic></sub> and diameter <italic>d</italic><sub><italic>n</italic></sub> is given by:<break/><inline-formula id="pcbi.1011625.e013"><alternatives><graphic id="pcbi.1011625.e013g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e013" xlink:type="simple"/><mml:math display="inline" id="M13"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:munderover><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>k</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:mi>m</mml:mi></mml:munderover><mml:mspace width="2pt"/><mml:msub><mml:mi>g</mml:mi> <mml:mrow><mml:mi mathvariant="normal">a</mml:mi> <mml:mi>k</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>V</mml:mi> <mml:mi>k</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:msub><mml:mi>V</mml:mi> <mml:mi>n</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:msub><mml:mi>C</mml:mi> <mml:mrow><mml:mi mathvariant="normal">m</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mfrac><mml:mrow><mml:mi mathvariant="normal">d</mml:mi> <mml:msub><mml:mi>V</mml:mi> <mml:mi>n</mml:mi></mml:msub></mml:mrow> <mml:mrow><mml:mi mathvariant="normal">d</mml:mi> <mml:mi>t</mml:mi></mml:mrow></mml:mfrac> <mml:mo>+</mml:mo> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mi mathvariant="normal">m</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub><mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>3</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></inline-formula><break/><inline-formula id="pcbi.1011625.e014"><alternatives><graphic id="pcbi.1011625.e014g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e014" xlink:type="simple"/><mml:math display="inline" id="M14"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>C</mml:mi> <mml:mrow><mml:mi mathvariant="normal">m</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>c</mml:mi> <mml:mi mathvariant="normal">m</mml:mi></mml:msub> <mml:msub><mml:mi>a</mml:mi> <mml:mi>n</mml:mi></mml:msub><mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>4</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></inline-formula><break/><inline-formula id="pcbi.1011625.e015"><alternatives><graphic id="pcbi.1011625.e015g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e015" xlink:type="simple"/><mml:math display="inline" id="M15"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>g</mml:mi> <mml:mrow><mml:mi mathvariant="normal">a</mml:mi> <mml:mi>k</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:mi>π</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>d</mml:mi> <mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msubsup> <mml:mo>+</mml:mo> <mml:msubsup><mml:mi>d</mml:mi> <mml:mi>k</mml:mi> <mml:mn>2</mml:mn></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>/</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:mn>4</mml:mn> <mml:msub><mml:mi>r</mml:mi> <mml:mi>a</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>l</mml:mi> <mml:mi>n</mml:mi></mml:msub> <mml:mo>+</mml:mo> <mml:msub><mml:mi>l</mml:mi> <mml:mi>k</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>)</mml:mo></mml:mrow><mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>5</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></inline-formula><break/><inline-formula id="pcbi.1011625.e016"><alternatives><graphic id="pcbi.1011625.e016g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e016" xlink:type="simple"/><mml:math display="inline" id="M16"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mi mathvariant="normal">m</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mo>=</mml:mo> <mml:msub><mml:mi>g</mml:mi> <mml:mrow><mml:mi mathvariant="normal">L</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>V</mml:mi> <mml:mi>n</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:msub><mml:mi>E</mml:mi> <mml:mi mathvariant="normal">L</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>+</mml:mo> <mml:munder><mml:mo>∑</mml:mo> <mml:mi>j</mml:mi></mml:munder> <mml:msub><mml:mi>I</mml:mi> <mml:mrow><mml:mi>j</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mspace width="3.33333pt"/><mml:mo>,</mml:mo><mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>6</mml:mn><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives></inline-formula><break/>where for compartment <italic>n</italic>, <italic>C</italic><sub>m<italic>n</italic></sub> is the membrane capacitance, <italic>g</italic><sub>a<italic>kn</italic></sub> the axial conductance from compartment <italic>k</italic>, <italic>I</italic><sub>m<italic>n</italic></sub> the membrane current, <italic>g</italic><sub>L<italic>n</italic></sub> the membrane leak conductance, <italic>E</italic><sub>L</sub> the extracellular reversal potential, and <italic>I</italic><sub><italic>jn</italic></sub> the synaptic current from presynaptic neuron <italic>j</italic>.</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>C</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Synapse model</bold></td>
</tr>
<tr>
<td align="left"><bold>Synapse type</bold></td>
<td align="left"><italic>α</italic>-function shaped postsynaptic current</td>
</tr>
<tr>
<td align="left"><bold>Description</bold></td>
<td align="left">
<inline-formula id="pcbi.1011625.e017">
<alternatives>
<graphic id="pcbi.1011625.e017g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e017" xlink:type="simple"/>
<mml:math display="inline" id="M17">
<mml:mtable displaystyle="true">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mrow>
<mml:mi>I</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mo>=</mml:mo>
<mml:mi>H</mml:mi>
<mml:mrow>
<mml:mo>(</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>-</mml:mo>
<mml:msub>
<mml:mi>t</mml:mi>
<mml:mi mathvariant="normal">a</mml:mi>
</mml:msub>
<mml:mo>)</mml:mo>
</mml:mrow>
<mml:mi>J</mml:mi>
<mml:mi>C</mml:mi>
<mml:mi>t</mml:mi>
<mml:msup>
<mml:mi>e</mml:mi>
<mml:mrow>
<mml:mn>1</mml:mn>
<mml:mo>-</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>/</mml:mo>
<mml:msub>
<mml:mi>τ</mml:mi>
<mml:mtext>syn</mml:mtext>
</mml:msub>
</mml:mrow>
</mml:msup>
</mml:mrow>
<mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>7</mml:mn><mml:mo>)</mml:mo>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</alternatives>
</inline-formula><break/>
<inline-formula id="pcbi.1011625.e018">
<alternatives>
<graphic id="pcbi.1011625.e018g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e018" xlink:type="simple"/>
<mml:math display="inline" id="M18">
<mml:mtable displaystyle="true">
<mml:mtr>
<mml:mtd columnalign="right">
<mml:mrow>
<mml:mi>H</mml:mi>
<mml:mo>(</mml:mo>
<mml:mi>t</mml:mi>
<mml:mo>)</mml:mo>
<mml:mo>=</mml:mo>
<mml:mn>0</mml:mn>
<mml:mspace width="4pt"/>
<mml:mtext>for</mml:mtext>
<mml:mspace width="4pt"/>
<mml:mi>t</mml:mi>
<mml:mo>≤</mml:mo>
<mml:mn>0</mml:mn>
<mml:mo>,</mml:mo>
<mml:mspace width="4pt"/>
<mml:mtext>otherwise</mml:mtext>
<mml:mspace width="4pt"/>
<mml:mn>1</mml:mn>
<mml:mspace width="0.277778em"/>
<mml:mo>.</mml:mo>
<mml:mo> </mml:mo><mml:mo>(</mml:mo><mml:mn>8</mml:mn><mml:mo>)</mml:mo>
</mml:mrow>
</mml:mtd>
</mml:mtr>
</mml:mtable>
</mml:math>
</alternatives>
</inline-formula><break/>Here, <italic>t</italic><sub>a</sub> is the activation time of the synapse, <italic>J</italic> the synaptic strength, and <italic>τ</italic><sub>syn</sub> is the synaptic time constant. <italic>C</italic> is a constant chosen so that <inline-formula id="pcbi.1011625.e019"><alternatives><graphic id="pcbi.1011625.e019g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e019" xlink:type="simple"/><mml:math display="inline" id="M19"><mml:mrow><mml:mi>J</mml:mi> <mml:mi>C</mml:mi> <mml:msubsup><mml:mo>∫</mml:mo> <mml:mrow><mml:mn>0</mml:mn></mml:mrow> <mml:mi>∞</mml:mi></mml:msubsup> <mml:mi>t</mml:mi> <mml:msup><mml:mi>e</mml:mi> <mml:mrow><mml:mn>1</mml:mn> <mml:mo>-</mml:mo> <mml:mi>t</mml:mi> <mml:mo>/</mml:mo> <mml:msub><mml:mi>τ</mml:mi> <mml:mtext>syn</mml:mtext></mml:msub></mml:mrow></mml:msup> <mml:mi mathvariant="normal">d</mml:mi> <mml:mi>t</mml:mi> <mml:mo>=</mml:mo> <mml:msub><mml:mi>C</mml:mi> <mml:mi mathvariant="normal">m</mml:mi></mml:msub> <mml:mi>J</mml:mi></mml:mrow></mml:math></alternatives></inline-formula>, assuring that the same total charge is transferred as in the <italic>δ</italic>-function synapse in the point-neuron network.</td>
</tr>
<tr>
<td align="left" style="background-color:#E5E5E5"><bold>D</bold></td>
<td align="center" style="background-color:#E5E5E5"><bold>Topology</bold></td>
</tr>
<tr>
<td align="left"><bold>Type</bold></td>
<td align="left">Cylinder with radius <inline-formula id="pcbi.1011625.e020"><alternatives><graphic id="pcbi.1011625.e020g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e020" xlink:type="simple"/><mml:math display="inline" id="M20"><mml:mrow><mml:mn>1</mml:mn> <mml:mo>/</mml:mo> <mml:msqrt><mml:mi>π</mml:mi></mml:msqrt></mml:mrow></mml:math></alternatives></inline-formula> mm and height 0.5 mm containing two vertical sections</td>
</tr>
<tr>
<td align="left"><bold>Description</bold></td>
<td align="left">
<list list-type="simple">
<list-item>
<p>- Cylinder extends from <italic>z</italic> = −500 <italic>μ</italic>m to <italic>z</italic> = 0</p>
</list-item>
<list-item>
<p>- All somas are randomly placed with a uniform distribution within the boundaries <italic>r</italic> ≤ 564 <italic>μ</italic>m and −450 <italic>μ</italic>m ≤ <italic>z</italic> ≤ −350 <italic>μ</italic>m</p>
</list-item>
<list-item>
<p>- Two regions separated by the plane <italic>z</italic> = −300 <italic>μ</italic>m</p>
</list-item>
<list-item>
<p>- Synapses on inhibitory neurons are placed in lower region</p>
</list-item>
<list-item>
<p>- Inhibitory synapses on excitatory neurons are placed in lower region</p>
</list-item>
<list-item>
<p>- Excitatory synapses on excitatory neurons are split equally between regions</p>
</list-item>
</list>
</td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
<table-wrap id="pcbi.1011625.t004" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.t004</object-id>
<label>Table 4</label>
<caption>
<title>Multi-compartment neuron parameters.</title>
</caption>
<alternatives>
<graphic id="pcbi.1011625.t004g" mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.t004" xlink:type="simple"/>
<table border="0" frame="box" rules="all">
<colgroup>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
<col align="left" valign="middle"/>
</colgroup>
<thead>
<tr>
<th align="center" colspan="3" style="background-color:#E5E5E5">Multi-compartment neuron parameters</th>
</tr>
<tr>
<th align="left">Symbol</th>
<th align="left">Description</th>
<th align="left">Value</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left"><italic>τ</italic><sub>m</sub></td>
<td align="left">membrane time constant</td>
<td align="left">[15, 30] ms</td>
</tr>
<tr>
<td align="left"><italic>c</italic><sub>m</sub></td>
<td align="left">membrane capacitance</td>
<td align="left">[0.6, 1.4] μF/cm<sup>2</sup></td>
</tr>
<tr>
<td align="left"><italic>r</italic><sub>m</sub></td>
<td align="left">membrane resistivity</td>
<td align="left"><italic>τ</italic><sub>m</sub>/<italic>c</italic><sub>m</sub></td>
</tr>
<tr>
<td align="left"><italic>R</italic><sub>a</sub></td>
<td align="left">axial resistivity</td>
<td align="left">150 Ωcm</td>
</tr>
<tr>
<td align="left"><italic>τ</italic><sub>syn</sub></td>
<td align="left">synaptic time constant</td>
<td align="left">[1.0, 8.0] ms</td>
</tr>
<tr>
<td align="left"><italic>E</italic><sub>L</sub></td>
<td align="left">passive leak reversal potential</td>
<td align="left">0 mV</td>
</tr>
<tr>
<td align="left"><italic>V</italic><sub>init</sub></td>
<td align="left">membrane potentials at <italic>t</italic> = 0 ms</td>
<td align="left">0 mV</td>
</tr>
<tr>
<td align="left"><italic>σ</italic><sub>e</sub></td>
<td align="left">extracellular conductivity</td>
<td align="left">0.3 Sm<sup>−1</sup></td>
</tr>
</tbody>
</table>
</alternatives>
</table-wrap>
<p>Current-based synapses and morphologies with passive membranes in the multi-compartment neuron models give a linear relationship between any presynaptic spike event and contributions to the LFP resulting from evoked currents in all postsynaptic multi-compartment neurons. Thus the LFP contribution <inline-formula id="pcbi.1011625.e021"><alternatives><graphic id="pcbi.1011625.e021g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e021" xlink:type="simple"/><mml:math display="inline" id="M21"><mml:mrow><mml:msubsup><mml:mi>ϕ</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> at position <bold>r</bold> from a single presynaptic point-neuron <italic>j</italic> in population <italic>Y</italic> can, in general, be calculated by the convolution of its spike train <inline-formula id="pcbi.1011625.e022"><alternatives><graphic id="pcbi.1011625.e022g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e022" xlink:type="simple"/><mml:math display="inline" id="M22"><mml:mrow><mml:msubsup><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup><mml:mspace width="2pt"/><mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>≡</mml:mo> <mml:msub><mml:mo>∑</mml:mo> <mml:mi>k</mml:mi></mml:msub><mml:mspace width="2pt"/> <mml:mi>δ</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>-</mml:mo> <mml:msubsup><mml:mi>t</mml:mi> <mml:mi>j</mml:mi> <mml:mi>k</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> with a unique kernel <inline-formula id="pcbi.1011625.e023"><alternatives><graphic id="pcbi.1011625.e023g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e023" xlink:type="simple"/><mml:math display="inline" id="M23"><mml:mrow><mml:msubsup><mml:mi>H</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>τ</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> as <inline-formula id="pcbi.1011625.e024"><alternatives><graphic id="pcbi.1011625.e024g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e024" xlink:type="simple"/><mml:math display="inline" id="M24"><mml:mrow><mml:msubsup><mml:mi>ϕ</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>*</mml:mo> <mml:msubsup><mml:mi>H</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula>. This kernel encompasses effects of the postsynaptic neuron morphologies and biophysics, the electrostatic forward model, the synaptic connectivity pattern, conduction delay and post-synaptic currents. This kernel can be further decomposed as a convolution between the LFP response of a unit current for a single time step, and the post-synaptic current. The resulting LFP due to spikes in a presynaptic population <italic>Y</italic> is then given by
<disp-formula id="pcbi.1011625.e025"><alternatives><graphic id="pcbi.1011625.e025g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e025" xlink:type="simple"/><mml:math display="block" id="M25"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>ϕ</mml:mi> <mml:mi>Y</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:munder><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>∈</mml:mo> <mml:mi>Y</mml:mi></mml:mrow></mml:munder> <mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>*</mml:mo> <mml:msubsup><mml:mi>h</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>*</mml:mo> <mml:msubsup><mml:mi>I</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mspace width="0.277778em"/><mml:mtext>,</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(9)</label></disp-formula>
where <inline-formula id="pcbi.1011625.e026"><alternatives><graphic id="pcbi.1011625.e026g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e026" xlink:type="simple"/><mml:math display="inline" id="M26"><mml:mrow><mml:msubsup><mml:mi>I</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> is the post-synaptic current given by Eq 7 in <xref ref-type="table" rid="pcbi.1011625.t003">Table 3</xref>, and <inline-formula id="pcbi.1011625.e027"><alternatives><graphic id="pcbi.1011625.e027g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e027" xlink:type="simple"/><mml:math display="inline" id="M27"><mml:mrow><mml:mrow><mml:mo>(</mml:mo> <mml:msubsup><mml:mi>h</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>*</mml:mo> <mml:msubsup><mml:mi>I</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:msubsup><mml:mi>H</mml:mi> <mml:mrow><mml:mi>Y</mml:mi></mml:mrow> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula>.</p>
<p>As shown in [<xref ref-type="bibr" rid="pcbi.1011625.ref030">30</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref034">34</xref>], a good approximation can be made by convolving the population firing rates <inline-formula id="pcbi.1011625.e028"><alternatives><graphic id="pcbi.1011625.e028g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e028" xlink:type="simple"/><mml:math display="inline" id="M28"><mml:mrow><mml:msub><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>≡</mml:mo> <mml:msub><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>∈</mml:mo> <mml:mi>Y</mml:mi></mml:mrow></mml:msub> <mml:msubsup><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> with averaged kernels <inline-formula id="pcbi.1011625.e029"><alternatives><graphic id="pcbi.1011625.e029g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e029" xlink:type="simple"/><mml:math display="inline" id="M29"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>H</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>Y</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>τ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>≡</mml:mo> <mml:mn>1</mml:mn> <mml:mo>/</mml:mo> <mml:msub><mml:mi>N</mml:mi> <mml:mi>Y</mml:mi></mml:msub> <mml:msub><mml:mo>∑</mml:mo> <mml:mrow><mml:mi>j</mml:mi> <mml:mo>∈</mml:mo> <mml:mi>Y</mml:mi></mml:mrow></mml:msub><mml:mspace width="2pt"/><mml:msubsup><mml:mi>H</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>τ</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula>, that is,
<disp-formula id="pcbi.1011625.e030"><alternatives><graphic id="pcbi.1011625.e030g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e030" xlink:type="simple"/><mml:math display="block" id="M30"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>ϕ</mml:mi> <mml:mi>Y</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi></mml:msub> <mml:mo>*</mml:mo> <mml:msub><mml:mover accent="true"><mml:mi>H</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>Y</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mspace width="0.222222em"/><mml:mo>.</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(10)</label></disp-formula></p>
<p>As in [<xref ref-type="bibr" rid="pcbi.1011625.ref030">30</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref034">34</xref>] these averaged kernels <inline-formula id="pcbi.1011625.e031"><alternatives><graphic id="pcbi.1011625.e031g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e031" xlink:type="simple"/><mml:math display="inline" id="M31"><mml:mrow><mml:msub><mml:mover accent="true"><mml:mi>H</mml:mi> <mml:mo>¯</mml:mo></mml:mover> <mml:mi>Y</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">r</mml:mi> <mml:mo>,</mml:mo> <mml:mi>τ</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> were computed using the full hybrid-scheme. This was done by computing the LFP resulting from a fully synchronous activation of all the outgoing synapses from all neurons in the presynaptic population. Thus for the computation of the LFP kernel, we have <inline-formula id="pcbi.1011625.e032"><alternatives><graphic id="pcbi.1011625.e032g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e032" xlink:type="simple"/><mml:math display="inline" id="M32"><mml:mrow><mml:msubsup><mml:mi>ν</mml:mi> <mml:mi>Y</mml:mi> <mml:mi>j</mml:mi></mml:msubsup> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>≡</mml:mo> <mml:mi>δ</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi>t</mml:mi> <mml:mo>-</mml:mo> <mml:msub><mml:mi>t</mml:mi> <mml:mi>Y</mml:mi></mml:msub> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula> where <italic>t</italic><sub><italic>Y</italic></sub> is the timing of the synchronous event in population <italic>Y</italic>.</p>
<p>After the single time-step kernel has been computed, the full kernel can easily be computed for any post-synaptic current, and hence synaptic parameters. In order to account for the membrane parameters <italic>τ</italic><sub>m</sub> and <italic>c</italic><sub><italic>m</italic></sub>, where <italic>c</italic><sub><italic>m</italic></sub> is the per-area capacitance, we compute the kernel for a single time step on a grid of different values of <italic>τ</italic><sub>m</sub> and <italic>C</italic><sub>m</sub>, and adjust this kernel by linear interpolation. We compute the kernels at the values [0.4, 0.6, 0.8, 1.0, 1.2] for <italic>c</italic><sub><italic>m</italic></sub> and [<xref ref-type="bibr" rid="pcbi.1011625.ref015">15</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref018">18</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref021">21</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref024">24</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref027">27</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref030">30</xref>] for <italic>τ</italic><sub>m</sub>. Since the membrane capacitance for morphological neurons is dependent on the area of the neuron, we choose a baseline value of <italic>c</italic><sub><italic>m</italic></sub> = 1.0, and adjust it by the same proportion as <italic>C</italic><sub>m</sub> for the point-neuron network. The synaptic parameters can subsequently be accounted for in a separate step.</p>
</sec>
<sec id="sec005">
<title>2.3 Gaussian process regression</title>
<p>Here we give a brief overview of Gaussian process regression models, their training procedures and the extension to deep models.</p>
<p>Gaussian process regression models are probabilistic non-parametric models that provide distributions over arbitrary functions, and are trained using supervised learning. A Gaussian process (GP) is a collection of random variables such that any finite number of them follow a joint Gaussian distribution, and a GP is completely specified by a <italic>mean function</italic> <italic>m</italic>(<bold><italic>θ</italic></bold>) and a <italic>covariance function</italic> <italic>k</italic>(<bold><italic>θ</italic></bold>, <bold><italic>θ</italic></bold>) [<xref ref-type="bibr" rid="pcbi.1011625.ref018">18</xref>]. Consider a data set consisting of <italic>n</italic> inputs of dimension <italic>d</italic> contained in the matrix Θ, and corresponding outputs <bold>x</bold>, which are assumed to be one-dimensional for notational simplicity in this section. A Gaussian process regression model assumes a distribution over an underlying latent function <italic>f</italic>(<bold><italic>θ</italic></bold>) which is modelled as a Gaussian process. Evaluating this distribution at the set of input points Θ gives a joint Gaussian distribution <inline-formula id="pcbi.1011625.e033"><alternatives><graphic id="pcbi.1011625.e033g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e033" xlink:type="simple"/><mml:math display="inline" id="M33"><mml:mrow><mml:mi>f</mml:mi> <mml:mo>(</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo> <mml:mo>∼</mml:mo> <mml:mi mathvariant="script">N</mml:mi> <mml:mo>(</mml:mo> <mml:mn mathvariant="bold">0</mml:mn> <mml:mo>,</mml:mo> <mml:mi>k</mml:mi> <mml:mo>(</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>,</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula>, where the covariance function <italic>k</italic>(Θ, Θ) must return a positive semi-definite covariance matrix between all the data points contained in Θ. The mean function is usually assumed to be 0 without loss of expressiveness. The covariance function encodes the properties of the function, and there are many different covariance functions available with different properties. In the present work, we use the Matérn 5/2 kernel
<disp-formula id="pcbi.1011625.e034"><alternatives><graphic id="pcbi.1011625.e034g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e034" xlink:type="simple"/><mml:math display="block" id="M34"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:msub><mml:mi>C</mml:mi> <mml:mrow><mml:mn>5</mml:mn> <mml:mo>/</mml:mo> <mml:mn>2</mml:mn></mml:mrow></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold-italic">θ</mml:mi> <mml:mo>,</mml:mo> <mml:msup><mml:mrow><mml:mi mathvariant="bold-italic">θ</mml:mi></mml:mrow> <mml:mo>′</mml:mo></mml:msup> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:msup><mml:mi>σ</mml:mi> <mml:mn>2</mml:mn></mml:msup> <mml:mo>(</mml:mo> <mml:mn>1</mml:mn> <mml:mo>+</mml:mo> <mml:mn>5</mml:mn> <mml:mi>d</mml:mi> <mml:mo>+</mml:mo> <mml:mfrac><mml:mn>5</mml:mn> <mml:mn>3</mml:mn></mml:mfrac> <mml:msup><mml:mi>d</mml:mi> <mml:mn>2</mml:mn></mml:msup> <mml:mo>)</mml:mo> <mml:mtext>exp</mml:mtext> <mml:mrow><mml:mo>(</mml:mo> <mml:mo>-</mml:mo> <mml:mn>5</mml:mn> <mml:mi>d</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mtext>,</mml:mtext> <mml:mspace width="4pt"/><mml:mspace width="4pt"/><mml:mi>d</mml:mi> <mml:mo>=</mml:mo> <mml:msqrt><mml:mrow><mml:mn>5</mml:mn> <mml:munder><mml:mo>∑</mml:mo> <mml:mi>i</mml:mi></mml:munder> <mml:msup><mml:mrow><mml:mo>(</mml:mo> <mml:mfrac><mml:mrow><mml:msub><mml:mi>θ</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>-</mml:mo> <mml:msubsup><mml:mi>θ</mml:mi> <mml:mi>i</mml:mi> <mml:mo>′</mml:mo></mml:msubsup></mml:mrow> <mml:msub><mml:mi>l</mml:mi> <mml:mi>i</mml:mi></mml:msub></mml:mfrac> <mml:mo>)</mml:mo></mml:mrow> <mml:mn>2</mml:mn></mml:msup></mml:mrow></mml:msqrt> <mml:mtext>,</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(11)</label></disp-formula>
where <bold>l</bold> and <italic>σ</italic> are learnable parameters.</p>
<p>The model of the observed outputs <bold>x</bold> is given by the underlying latent function <bold>f</bold>(Θ) corrupted by some noise <inline-formula id="pcbi.1011625.e035"><alternatives><graphic id="pcbi.1011625.e035g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e035" xlink:type="simple"/><mml:math display="inline" id="M35"><mml:mrow><mml:mi>ϵ</mml:mi> <mml:mo>∼</mml:mo> <mml:mi mathvariant="script">N</mml:mi> <mml:mo>(</mml:mo> <mml:mn mathvariant="bold">0</mml:mn> <mml:mo>,</mml:mo> <mml:msubsup><mml:mi>σ</mml:mi> <mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msubsup> <mml:mi>I</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:math></alternatives></inline-formula> such that <inline-formula id="pcbi.1011625.e036"><alternatives><graphic id="pcbi.1011625.e036g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e036" xlink:type="simple"/><mml:math display="inline" id="M36"><mml:mrow><mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>|</mml:mo> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mi mathvariant="script">N</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>,</mml:mo> <mml:msubsup><mml:mi>σ</mml:mi> <mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msubsup> <mml:mi>I</mml:mi> <mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:math></alternatives></inline-formula>. The marginal likelihood of the data is obtained as
<disp-formula id="pcbi.1011625.e037"><alternatives><graphic id="pcbi.1011625.e037g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e037" xlink:type="simple"/><mml:math display="block" id="M37"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>;</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mo>∫</mml:mo> <mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>|</mml:mo> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>;</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>;</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>d</mml:mi> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>=</mml:mo> <mml:mi mathvariant="script">N</mml:mi> <mml:mo>(</mml:mo> <mml:mn mathvariant="bold">0</mml:mn> <mml:mo>,</mml:mo> <mml:msup><mml:mrow><mml:mo>(</mml:mo> <mml:mi>K</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>,</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>+</mml:mo> <mml:msub><mml:mi>σ</mml:mi> <mml:mi>n</mml:mi></mml:msub> <mml:mi>I</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:mo>)</mml:mo> <mml:mtext>,</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(12)</label></disp-formula>
which can be found analytically in the case of a Gaussian likelihood <italic>p</italic>(<bold>x</bold>|<bold>f</bold>, Θ), and is used to optimize the model parameters.</p>
<p>Given a new set of inputs Θ<sub>*</sub> on which we would like to evaluate the model, the GP specifies a joint distribution over <bold>x</bold> and <bold>x</bold><sub>*</sub>, and the predictions are made as the distribution over <bold>x</bold><sub>*</sub> conditioned on the training data <bold>x</bold> [<xref ref-type="bibr" rid="pcbi.1011625.ref018">18</xref>]
<disp-formula id="pcbi.1011625.e038"><alternatives><graphic id="pcbi.1011625.e038g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e038" xlink:type="simple"/><mml:math display="block" id="M38"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>p</mml:mi> <mml:mo>(</mml:mo> <mml:msub><mml:mi mathvariant="bold">x</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>|</mml:mo> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>;</mml:mo> <mml:msub><mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>,</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow><mml:mrow><mml:mo>=</mml:mo> <mml:mo>∫</mml:mo> <mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi mathvariant="bold">x</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>|</mml:mo> <mml:msub><mml:mi mathvariant="bold">f</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>;</mml:mo> <mml:msub><mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi mathvariant="bold">f</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>|</mml:mo> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>;</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>,</mml:mo> <mml:msub><mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">f</mml:mi> <mml:mo>|</mml:mo> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>;</mml:mo> <mml:mi mathvariant="normal">Θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mi>d</mml:mi> <mml:mi mathvariant="bold">f</mml:mi> <mml:mi>d</mml:mi> <mml:msub><mml:mi mathvariant="bold">f</mml:mi> <mml:mo>*</mml:mo></mml:msub></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(13)</label></disp-formula> <disp-formula id="pcbi.1011625.e039"><alternatives><graphic id="pcbi.1011625.e039g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e039" xlink:type="simple"/><mml:math display="block" id="M39"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd/><mml:mtd><mml:mrow><mml:mo>=</mml:mo> <mml:mi mathvariant="script">N</mml:mi> <mml:mo>(</mml:mo> <mml:msub><mml:mi mathvariant="bold">x</mml:mi> <mml:mo>*</mml:mo></mml:msub> <mml:mo>|</mml:mo> <mml:msub><mml:mi>K</mml:mi> <mml:mrow><mml:mi>n</mml:mi> <mml:mo>*</mml:mo></mml:mrow></mml:msub> <mml:msubsup><mml:mi>K</mml:mi> <mml:mrow><mml:mi>n</mml:mi> <mml:mi>n</mml:mi></mml:mrow> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msubsup> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>,</mml:mo> <mml:mspace width="4pt"/><mml:mspace width="4pt"/><mml:msub><mml:mi>K</mml:mi> <mml:mrow><mml:mo>*</mml:mo> <mml:mo>*</mml:mo></mml:mrow></mml:msub> <mml:mo>-</mml:mo> <mml:msubsup><mml:mi>K</mml:mi> <mml:mrow><mml:mi>f</mml:mi> <mml:mo>*</mml:mo></mml:mrow> <mml:mi>T</mml:mi></mml:msubsup> <mml:msup><mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>K</mml:mi> <mml:mrow><mml:mi>n</mml:mi> <mml:mi>n</mml:mi></mml:mrow></mml:msub> <mml:mo>+</mml:mo> <mml:msubsup><mml:mi>σ</mml:mi> <mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msubsup> <mml:mi>I</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mrow><mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:msub><mml:mi>K</mml:mi> <mml:mrow><mml:mi>f</mml:mi> <mml:mo>*</mml:mo></mml:mrow></mml:msub> <mml:mo>+</mml:mo> <mml:msubsup><mml:mi>σ</mml:mi> <mml:mi>n</mml:mi> <mml:mn>2</mml:mn></mml:msubsup> <mml:mi>I</mml:mi> <mml:mo>)</mml:mo> <mml:mtext>,</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(14)</label></disp-formula>
where we use the shorthand notation <italic>K</italic><sub><italic>nn</italic></sub> = <italic>k</italic>(Θ, Θ), <italic>K</italic><sub><italic>n</italic>*</sub> = <italic>k</italic>(Θ, Θ<sub>*</sub>) and <italic>K</italic><sub>**</sub> = <italic>k</italic>(Θ<sub>*</sub>, Θ<sub>*</sub>). The semicolon indicates the input points corresponding to the distributions, on which the covariance function is evaluated. We can immediately see that the mean value of the distribution at the predicted locations Θ<sub>*</sub> are linear combinations of the training values <bold>x</bold>.</p>
<p>Deep, or composite, GP models are constructed by iteratively defining GPs with the previous GP as inputs. A joint prior distribution over all layers is given by
<disp-formula id="pcbi.1011625.e040"><alternatives><graphic id="pcbi.1011625.e040g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e040" xlink:type="simple"/><mml:math display="block" id="M40"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold">x</mml:mi> <mml:mo>,</mml:mo> <mml:msubsup><mml:mrow><mml:mo>{</mml:mo> <mml:msup><mml:mi mathvariant="bold">f</mml:mi> <mml:mi>l</mml:mi></mml:msup> <mml:mo>,</mml:mo> <mml:mo>}</mml:mo></mml:mrow> <mml:mrow><mml:mi>l</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:mi>L</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:munderover><mml:mo>∏</mml:mo> <mml:mrow><mml:mi>i</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:mi>N</mml:mi></mml:munderover><mml:mspace width="2pt"/><mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:msub><mml:mi>x</mml:mi> <mml:mi>i</mml:mi></mml:msub> <mml:mo>|</mml:mo> <mml:msubsup><mml:mi>f</mml:mi> <mml:mi>i</mml:mi> <mml:mi>L</mml:mi></mml:msubsup> <mml:mo>)</mml:mo></mml:mrow> <mml:munderover><mml:mo>∏</mml:mo> <mml:mrow><mml:mi>l</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:mi>L</mml:mi></mml:munderover><mml:mspace width="2pt"/><mml:mi>p</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:msup><mml:mi mathvariant="bold">f</mml:mi> <mml:mi>l</mml:mi></mml:msup> <mml:mo>;</mml:mo> <mml:msup><mml:mi mathvariant="bold">f</mml:mi> <mml:mrow><mml:mi>l</mml:mi> <mml:mo>-</mml:mo> <mml:mn>1</mml:mn></mml:mrow></mml:msup> <mml:mo>)</mml:mo></mml:mrow> <mml:mspace width="4pt"/><mml:mtext>,</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(15)</label></disp-formula>
where <bold>f</bold><sup>0</sup> = <bold><italic>θ</italic></bold>. As in standard GP models, we would like to marginalize out the latent functions in all layers for optimization. For predictions, we would like to condition the latent functions on the training data and then marginalize them. This is obviously not possible analytically, and approximations have to be used. We do not go in to details, but refer the readers to [<xref ref-type="bibr" rid="pcbi.1011625.ref035">35</xref>] for an excellent tutorial.</p>
<p>For multi-dimensional outputs, one can either assume the outputs to be independent, or correlated. In the former case, a separate GP is indepedently trained for each output dimension. For the latter case, one simple way of introducing correlations between output channels is to make a linear combination of independent GPs. If the number of independent GPs is lower than the number of output dimensions, a low-dimensional representation of the output is achieved, with a linear mapping between the latent space and the output. The model can be written as
<disp-formula id="pcbi.1011625.e041"><alternatives><graphic id="pcbi.1011625.e041g" mimetype="image" position="anchor" xlink:href="info:doi/10.1371/journal.pcbi.1011625.e041" xlink:type="simple"/><mml:math display="block" id="M41"><mml:mtable displaystyle="true"><mml:mtr><mml:mtd columnalign="right"><mml:mrow><mml:mi mathvariant="bold">g</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold-italic">θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:msubsup><mml:mrow><mml:mo>{</mml:mo> <mml:msub><mml:mi>g</mml:mi> <mml:mi>p</mml:mi></mml:msub> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold-italic">θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>}</mml:mo></mml:mrow> <mml:mrow><mml:mi>p</mml:mi> <mml:mo>=</mml:mo> <mml:mn>1</mml:mn></mml:mrow> <mml:mi>P</mml:mi></mml:msubsup> <mml:mo>,</mml:mo> <mml:mspace width="1em"/><mml:mspace width="1em"/><mml:mi mathvariant="bold">f</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold-italic">θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mo>=</mml:mo> <mml:mi>W</mml:mi> <mml:mi mathvariant="bold">g</mml:mi> <mml:mrow><mml:mo>(</mml:mo> <mml:mi mathvariant="bold-italic">θ</mml:mi> <mml:mo>)</mml:mo></mml:mrow> <mml:mtext>,</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></alternatives> <label>(16)</label></disp-formula>
where <italic>g</italic><sub><italic>p</italic></sub>(<bold><italic>θ</italic></bold>) forms a set of independent GPs, and <italic>W</italic> is an <italic>n</italic> × <italic>p</italic> matrix used to linearly construct the output <bold>f</bold>(<bold><italic>θ</italic></bold>) [<xref ref-type="bibr" rid="pcbi.1011625.ref036">36</xref>].</p>
<p>This can be viewed as an input-dependent linear latent space model, where we assume a linear mapping between a latent space and the output, but the coefficients of this mapping can change in a non-linear fashion. If we choose <italic>P</italic> to be a small number, a low-rank representation of the output is achieved.</p>
<p>We used a DGPR model based on the framework by [<xref ref-type="bibr" rid="pcbi.1011625.ref023">23</xref>]. We use 2 layers, and do a parameter scan in order to find the number of GPs to use in each layer. The final output is constructed by a linear transformation from the GPs in the second layer as given by <xref ref-type="disp-formula" rid="pcbi.1011625.e041">Eq 16</xref>.</p>
</sec>
<sec id="sec006">
<title>2.4 Posterior distribution over parameters</title>
<p>The metamodels provide a distribution <italic>p</italic>(<bold>x</bold>|<bold><italic>θ</italic></bold>), which is an approximation to the distribution over the outputs given by the simulations, where <bold>x</bold> is the simulation output, and <bold><italic>θ</italic></bold> is the simulation inputs. Introducing a prior distribution over the inputs <italic>p</italic>(<bold><italic>θ</italic></bold>), which we take to be uniform over the ranges of input values used to train the metamodels, the unnormalized posterior distribution over parameters given a specific observed model output <bold>x</bold><sub>0</sub> is given by <italic>p</italic>(<bold><italic>θ</italic></bold>|<bold>x</bold><sub>0</sub>) ∝ <italic>p</italic>(<bold>x</bold><sub>0</sub>|<bold><italic>θ</italic></bold>)<italic>p</italic>(<bold><italic>θ</italic></bold>). We sampled from this distribution using an adaptive Metropolis algorithm [<xref ref-type="bibr" rid="pcbi.1011625.ref037">37</xref>]. The adaptive Metropolis algorithm is a random walk Markov Chain Monte Carlo algorithm, where a multivariate Gaussian proposal distribution is used, and where its covariance matrix is iteratively estimated by the sample covariance. We only estimated the covariance during the burn-in period, and kept it constant during sampling. Additionally, we used a separate scaling factor for the covariance matrix which was tuned during the burn-in period to give an acceptance ratio of around 0.3. Five chains were run in parallel, and run for a total of 40000 evaluations of the proposals, where the samples from the first 12000 proposals were discarded and considered the burn-in period. For each example in the test data set, the posterior distribution was sampled separately for both the metamodel of the population spiking activities and the metamodel for the LFP. The Gelman-Rubin statistic [<xref ref-type="bibr" rid="pcbi.1011625.ref038">38</xref>] was computed independently for each parameter, for each distribution, in order to assess the convergence properties of the chains.</p>
</sec>
<sec id="sec007">
<title>2.5 Technical details</title>
<sec id="sec008">
<title>2.5.1 Reproducibility</title>
<p>The simulations were run using Python v3.10.5. All point-network simulations were run with the NEST simulator v3.3 [<xref ref-type="bibr" rid="pcbi.1011625.ref028">28</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref029">29</xref>]. The forward-modeling of the LFP was done using hybridLFPy v0.2 [<xref ref-type="bibr" rid="pcbi.1011625.ref034">34</xref>] with LFPy v2.3 [<xref ref-type="bibr" rid="pcbi.1011625.ref039">39</xref>]. The DGPR metamodels were trained using GPyTorch v1.9.1 [<xref ref-type="bibr" rid="pcbi.1011625.ref040">40</xref>] with PyTorch v1.13.1. The MAF metamodels were trained using SBI v0.21.0 [<xref ref-type="bibr" rid="pcbi.1011625.ref041">41</xref>]. The metamodels were trained on NVIDIA Quadro RTX 8000 GPUs. All simulation and analysis code for this study is available on Github: <ext-link ext-link-type="uri" xlink:href="https://github.com/janskaar/Skaar_bioRxiv_506616v1" xlink:type="simple">https://github.com/janskaar/Skaar_bioRxiv_506616v1</ext-link></p>
</sec>
</sec>
</sec>
<sec id="sec009" sec-type="results">
<title>3 Results</title>
<p>The aim of this study was to apply metamodelling techniques to simulations of neuronal networks. Specifically, we applied Deep Gaussian process regression (DGPR) and masked autoregressive flow (MAF) models to approximate the likelihood of the network simulator model. In all cases, we consider the output of the simulator to be the power spectrum of either the summed population spiking activity, or the local field potential generated by the network. We compare the accuracies of the forward predictions of all three models on the population spiking activities. The DGPR metamodel is trained on both the LFP and the population spiking activities in order to evaluate the differences in information in the two signals. For the DGPR and MAF metamodels, we also estimate the posterior distribution for 100 examples in the test data set, and evaluate the accuracy of these based on the posterior predictive distribution.</p>
<p>We start by showing some example simulation outputs, and discuss the accuracy of the forward predictions of the metamodels. We then evaluate the number of training samples needed for the metamodels to obtain high prediction accuracy, before we discuss the inverse modelling and the posterior distributions. A HCPLSR metamodel was also trained on the same task. We refer to <xref ref-type="supplementary-material" rid="pcbi.1011625.s003">S3 Supplementary Section</xref>. for the results from that model.</p>
<sec id="sec010">
<title>3.1 Simulations</title>
<p>A total of 10000 simulations were run, with parameters sampled as described in Section 2.1. A network consisting of one excitatory and one inhibitory population can produce a variety of activity states, characterized by whether the neurons fire in <italic>synchrony</italic>, and how <italic>regularly</italic> they fire, that is, whether the inter-spike intervals for individual neurons have a wide or narrow distribution. The behaviour of the present two-population network was analyzed in the framework of mean-field theory in [<xref ref-type="bibr" rid="pcbi.1011625.ref005">5</xref>] for integrate-and-fire neurons where the synaptic currents were modelled as delta functions. Brunel [<xref ref-type="bibr" rid="pcbi.1011625.ref005">5</xref>] found that the network spiking activity could be described by distinct regimes, classified as synchronous regular (SR), asynchronous irregular (AI) and synchronous irregular (SI, fast and slow), depending on which specific parameter values were used, and arise by different mechanisms. As described in Section 2.1, we avoided activity states characterized by strongly synchronous behaviour, which produces sharp peaks in the power spectrum. <xref ref-type="fig" rid="pcbi.1011625.g002">Fig 2</xref> shows three examples of different states of network activity. Column A shows the synchronous regular regime, characterized by runaway excitation, where the synaptic strengths of inhibitory neurons are not strong enough to overcome the excitation, and the neurons fire regularly and synchronously with very high rates. Column B shows an example of a synchronous irregular state, produced in some cases when the network receives high amounts of external input and the inhibitory synaptic strengths are high. Column C shows asynchronous irregular activity. This is the regime in which most of the simulations used for training and validation were, although there is of course much variation within this regime. Columns A and B show the type of activity we avoided, with sharply peaked spectra.</p>
<fig id="pcbi.1011625.g002" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g002</object-id>
<label>Fig 2</label>
<caption>
<title>Example activity states.</title>
<p>Each column shows, from top to bottom, a raster plot, population firing rates, the power spectrum of the population averaged firing rates, the LFP, and the power spectrum of the LFP. The raster plot and firing rates are taken from the excitatory population. A: Synchronous regular activity. B: Synchronous irregular activity. C: Asynchronous irregular activity.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g002" xlink:type="simple"/>
</fig>
<p>We will not attempt to give a full description of all possible network states or the effects of all different parameters in this paper, but show these examples to make clear the states we have actively avoided, as described in Section 2.1.</p>
</sec>
<sec id="sec011">
<title>3.2 Forward predictions</title>
<p>The metamodels were tested on a data set containing 1681 examples, jointly sampled with the training data using Latin Hypercube sampling. Models were trained on data sets ranging from 100 to 8000 examples in order to examine the density of samples needed to adequately represent the simulation output space. For all other experiments, the metamodels used were trained on the full 8000 example simulations. A grid search of hyperparameters was run for each metamodel in order to find a suitable model for the problem at hand, which can be found in <xref ref-type="supplementary-material" rid="pcbi.1011625.s001">S1 Supplementary Section</xref>. The metamodel obtained from the hyperparameter search was used for all subsequent experiments, and where we trained new metamodels, the hyperparmeters were the kept the same. <xref ref-type="fig" rid="pcbi.1011625.g003">Fig 3A and 3B</xref> show examples of simulated outputs and corresponding outputs from the metamodels for two different sets of parameter values, for the population spiking activities and LFPs respectively. Only the outputs for the excitatory population spiking activity and the topmost LFP channel are shown. 10 simulations run with different seeds are shown in black lines, and the colored lines show the output given by the metamodels. The shaded area shows two standard deviations above and below the mean for the DGPR and MAF metamodels. Visually inspecting the top example in panel A, both metamodels accurately capture the mean of the simulations for all frequencies, but slightly overestimate the variance, particularly for the lower frequencies. In the bottom example, there is a larger discrepancy between the MAF metamodel and the simulator for the middle frequencies, while the DGPR metamodel is accurately able to capture both the mean and variance. Note that the covariance between frequency channels is not considered at all in this figure. In panel B, the LFP for the same simulations and the DGPR prediction are shown. Generally, the LFPs are smoother and the variance is lower compared to the population spiking activity. <xref ref-type="fig" rid="pcbi.1011625.g003">Fig 3C and 3D</xref> show the distribution over maximum (over frequencies) absolute errors on the test data set, where the expectation of the metamodel is used as the prediction value. We show the maximum error over frequencies since the large number of output channels make the mean small even in the presence of a few large deviations. Moreover, as the simulation output itself is random, we are mainly interested in finding any larger deviations, rather than small deviations, which are expected to occur. The expectation of the distribution given by the DGPR metamodel more closesly matches the simulated values compared to the MAF metamodel. <xref ref-type="fig" rid="pcbi.1011625.g003">Fig 3E and 3F</xref> show the mean standard deviation of the metamodel distributions evaluated at the test data parameters. The DGPR metamodel produces narrower distributions over the simulator output compared to the MAF model.</p>
<fig id="pcbi.1011625.g003" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g003</object-id>
<label>Fig 3</label>
<caption>
<title/>
<p>A: For two different parameter sets, the power spectrum of the population spiking activity from 10 simulations (black lines), and metamodels (blue and orange lines) are shown. The shaded area shows two standard deviations of the distribution given by the metamodels. B: Same as A, but for the LFP. Only the DGPR metamodel was trained on the LFP. C: Distribution over maximum (over frequencies) absolute errors for both metamodels, on the power spectrum of the population spiking activity. D: Same as for C, but for the LFP. E: Mean standard deviation of the metamodel outputs, evaluated at the parameters in the test data set. F: Same as E, but for the LFP.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g003" xlink:type="simple"/>
</fig>
<p>In terms of computational cost, evaluating the log probability of 50 example outputs takes around 4 seconds with the DGPR metamodel, and 0.014 seconds with the MAF metamodel. Generating 50 samples from the metamodels takes 1.6 seconds for the MAF metamodel, and 0.07 seconds with the DGPR metamodel. By contrast, running a single simulation took on average 4.4 CPU-minutes.</p>
<p>The training time for the metamodels depends on the model parameters and learning rate, as well as the random seed. A full epoch of the 8000 training examples takes around 4.4 seconds for the DGPR metamodel, and 1.4 seconds for the MAF model. Generally, the training converged after a few hundred epochs for both models, giving a training time (not counting the periodic train/test evaluation) on the scale of an hour for the DGPR model and around a third of that for the MAF model.</p>
</sec>
<sec id="sec012">
<title>3.3 Number of training samples needed to represent the model</title>
<p>The DGPR metamodel was trained on data sets ranging from 100 to 8000 examples of the population spiking activities, and the performances on the same test data set were evaluated. <xref ref-type="fig" rid="pcbi.1011625.g004">Fig 4</xref> shows the maximum (over frequencies) absolute prediction errors, averaged over the test data set for each trained metamodel. As the number of training samples increases, the prediction errors on the test data set decreases, as the metamodel starts to generalize better. The prediction errors on the training data set increases, as it becomes more heterogeneous and the model is less able to overfit to it. After a sharp decrease in errors as the number increases to a few hundreds, the benefit of increasing the number of training samples decreases significantly after on the order of 1000 is reached, indicating that the parameter space is sufficiently densely sampled.</p>
<fig id="pcbi.1011625.g004" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g004</object-id>
<label>Fig 4</label>
<caption>
<title/>
<p>Mean (over test data set and training data set) of the maximum (over frequencies) errors, in absolute scale, as a function of the number of examples used to train the metamodels on the population spiking activities.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g004" xlink:type="simple"/>
</fig>
</sec>
<sec id="sec013">
<title>3.4 Inverse modelling</title>
<p>Using the conditional distribution over simulation outputs given parameter values, estimated by the metamodels, posterior distributions for 100 simulations in the test data set were estimated. Separate posterior distributions for both metamodels conditioned on the population spiking activities, and for the DGPR metamodel conditioned on the LFP, were estimated using an adaptive Metropolis algorithm as described in Section 2.4.</p>
<p>The Gelman-Rubin statistic was computed for all the distributions, and was below 1.1 for over 90% of the posterior distributions for the population spiking activities, and over 95% of the posterior distributions for the LFP, indicating that the chains converged for most of the distributions. In the computation of average values over the test data set, all distributions were used, regardless of the value of the Gelman-Rubin statistic. For each of the estimated posterior distributions of both the population spiking activities and the LFP, 50 additional simulations were run with parameters drawn from the posterior distributions in order to evaluate the accuracy of the posterior distribution.</p>
<p>
<xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5A</xref> shows an example of a posterior distribution generated by the outputs of one simulation in the test data set. The 1D and 2D posterior marginal distributions of a subset of the parameters are shown. On the left-hand side, the posterior distribution generated by the population spiking activities are shown, and the corresponding posterior distribution from the LFP is shown on the right-hand side. The red bars and dots show the values of the parameters used in the simulation from which the posterior is generated. Qualitatively, the distributions from both the population spiking activities and the LFP appear similar for the first three parameters shown.</p>
<fig id="pcbi.1011625.g005" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g005</object-id>
<label>Fig 5</label>
<caption>
<title/>
<p>In A, C and D, the left-hand and right-hand side show equivalent plots for the population spiking activities and LFPs respectively. The DGPR metamodel is used in both cases. A: 1D and 2D marginal posterior distributions over a subset of the parameters, for an example in the test data set. The red dots and bars show the parameter values corresponding to the simulation output the posterior distribution was computed for. B: Left: mean (across test data set) of standard deviation of the 1D marginal distributions for each parameter. Right: Absolute error of the parameter predictions based on the expectation. C: Metamodel predictions for the power spectra of excitatory population spiking activity (left) and the uppermost channel of the LFP (right) in orange. Black lines show 50 simulation outputs run with parameters drawn from the posterior distribution. D: Distribution of maximum distance between the ground-truth simulation output from which the posterior distribution was computed, and the simulation output from the posterior distributions (black lines in C). Left plot shows the errors from the population spiking activities, right plot shows the errors from the LFP. The black lines show the simulations from the posterior conditioned on the population spiking activities, the gray lines show the simulations from the posterior conditioned on the LFP.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g005" xlink:type="simple"/>
</fig>
<p>For this particular example, the 1D marginal distributions of both posteriors are wide for the membrane time constant <italic>τ</italic><sub>m</sub>, quite narrow for <italic>g</italic>, and somewhere in between for <italic>η</italic>. Wide marginal distributions entail that, lacking information about all other parameters, the value of the parameter cannot be determined with certainty, while narrow marginal distributions entail that the parameter can be accurately determined even without knowledge of other parameters. There is a positive correlation between <italic>η</italic> and <italic>τ</italic><sub>m</sub> in the posterior distribution, i.e. if the value of <italic>η</italic> is increased the value of <italic>τ</italic><sub>m</sub> must also be increased for the model to produce similar outputs. Equivalently, if you know the specific value of either <italic>η</italic> or <italic>τ</italic><sub>m</sub>, the uncertainty in the other parameter would decrease. Note that because we only see 1D and 2D marginals, there may be higher-order interactions present that cannot be easily visualized. For the synaptic strengths, the distribution is much wider for the model trained on the population spiking activities compared to the model trained on the LFP.</p>
<p>The left-hand side of <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5B</xref> shows the mean (over all test examples) standard deviations of the 1D marginal distributions. Generally, the parameters related to the synaptic inputs have the narrowest marginal distributions, while the neuron parameters have much wider marginal distributions, indicating that changes to neuron parameters can largely be compensated for by adapting other parameters, while changes to synaptic and input parameters have a larger effect that cannot be compensated for to the same degree. The right-hand side of <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5B</xref> shows the mean (over all examples in the test data set) absolute distance in standard deviations of the parameters of the simulation used to generate the posterior (i.e. red dots in <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5A</xref>) and the expectation of the posterior distribution. For all the parameters, the mean absolute distance is smaller than the standard deviation of the approximate marginal posterior distributions, indicating that the approximate posteriors generally covers the parameters of the simulation the posterior distribution is conditioned on.</p>
<p>One notable difference between the posterior distributions computed from the metamodel of the population spiking activities and the posterior distributions computed from the metamodel of the LFP is that the overall synaptic strength, <italic>Q</italic><sub>s</sub>, and the membrane capacitance, <italic>C</italic><sub>m</sub>, are significantly more constrained by observing the LFP than by the population spiking activities, with a standard deviation more than three times as large for the population spiking activities. This can also be observed in the example distributions shown in <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5A</xref>. For the rest of the parameters, the standard deviations of the 1D marginal distributions are roughly the same when computed for the population spiking activities and the LFP. The full posterior distribution from <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5A</xref> is shown in <xref ref-type="supplementary-material" rid="pcbi.1011625.s001">S1 Supplementary Section</xref>.</p>
<p>
<xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5C</xref> shows the metamodel output (orange) corresponding to the same simulation as in A, and 50 individual simulation outputs (black) run with parameter values sampled from the posterior distribution of the example shown in A. Only the spectra from the excitatory population spiking activity and the topmost LFP channel are shown. The mean of the metamodel distribution is shown in dashed orange, and the shaded area shows ± 2 standard deviations. The simulations run with parameters from the posterior distribution fit nicely with the distribution over the outputs given by the metamodel, suggesting that the posterior distribution is reasonable. <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5D</xref> shows the distribution of the maximum (taken over frequencies and simulations for a given posterior) distance between the simulation outputs run with parameters drawn from the posterior distributions, and the simulation output the posterior is conditioned on, for the 100 posterior distributions for which the extra simulations were run.</p>
<p>The black line shows the errors for the simulations run with parameters drawn from the posterior generated by the population spiking activities, while the gray distribution shows the distances for the simulations run with parameters drawn from the posterior generated by LFPs. The left-hand side shows the distances of the population spiking activities, while the right-hand side shows the distances for the LFP. For both the population spiking activities and the LFP, the simulations from the posterior distributions are very similar to the signal they were conditioned on. Simulations from the posterior distributions conditioned on the LFP, also give population spiking activities very similar to the ground-truth. Simulations from the posterior distributions conditioned on the population spiking activities, on the other hand, do not give as similar LFPs to the ground-truth, which again shows that observing the LFP constrains the parameters to a greater degree than observing the population spiking activities.</p>
<p>
<xref ref-type="fig" rid="pcbi.1011625.g006">Fig 6</xref> shows a comparison between the posteriors obtained by the DGPR metamodel and the MAF metamodel. Panel A shows the marginal standard deviations, averaged over all posterior distributions. For both metamodels, they are similar, but the DGPR is generally slightly wider. Panel B shows the same plot, but for the posterior predictive distribution, i.e. the distribution over outputs when parameters are sampled from the posterior distribution. The posterior predictive distributions from the DGPR metamodel are significantly narrower than those from the MAF metamodel, even with wider posterior distributions, indicating that the posterior distributions are more correct compared to those from the MAF metamodel. Panels C and D show the mean absolute distance between the expectation of the posterior distribution and posterior predictive distribution respectively, and the simulations they are conditioned on. For both models, the errors are on the same scale as the standard deviations, indicating that neither systematically misses the simulation it is conditioned on.</p>
<fig id="pcbi.1011625.g006" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g006</object-id>
<label>Fig 6</label>
<caption>
<title/>
<p>A: mean marginal standard deviations of the posterior distributions. B: mean marginal standard deviations of the posterior predictive distributions. C: mean distance between expectation of marginal posterior distribution and the parameters from the simulation the posterior distribution is conditioned on. D: Same as C, but for the posterior predictive distribution.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g006" xlink:type="simple"/>
</fig>
<p>The Pearson correlation coefficient was computed for all pairwise combinations of parameters for all sampled posterior distributions. <xref ref-type="fig" rid="pcbi.1011625.g007">Fig 7</xref> shows the mean of the correlation coefficients over all examples in the test data set. The upper triangle shows the coefficients for the samples from the posterior distribution conditioned on the population spiking activities, and the lower triangle shows the coefficients conditioned on the LFP. The correlations between most of the parameters are fairly weak, but since only the average is shown, there could be stronger correlations in individual posterior distributions that the plot does not capture. For the LFP, there are strong average positive correlations between the synaptic parameters, i.e. the synaptic strength <italic>Q</italic><sub>s</sub>, the synaptic time constant <italic>τ</italic><sub>syn</sub> and relative inhibitory strength <italic>g</italic>. Interestingly, the corresponding coefficients for the population spiking activities are close to 0. This again highlights the difference in the posterior distributions for <italic>Q</italic><sub>s</sub> between the population spiking activities and the LFP. For the distributions conditioned on both the LFP and the population spiking activities, there are positive correlations are present between the parameters <italic>η</italic> and <italic>τ</italic><sub>m</sub>, as well as negative correlations between <italic>η</italic>, <italic>V</italic><sub>reset</sub> and <italic>C</italic><sub>m</sub>. As these parameters all impact the amount of input required for a neuron to spike, there are possibly complex interactions between all these parameters yielding manifolds of similar activities and LFPs.</p>
<fig id="pcbi.1011625.g007" position="float">
<object-id pub-id-type="doi">10.1371/journal.pcbi.1011625.g007</object-id>
<label>Fig 7</label>
<caption>
<title>Pearson correlation coefficients between samples from posterior distribution over parameters, averaged over the test data set.</title>
<p>Upper triangle shows the correlation coefficients for the posterior distributions from the simulated power spectra from the population spiking activities, while the lower triangle shows the same correlation coefficients from the LFP.</p>
</caption>
<graphic mimetype="image" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.g007" xlink:type="simple"/>
</fig>
</sec>
</sec>
<sec id="sec014" sec-type="conclusions">
<title>4 Discussion</title>
<p>In the present work we have trained metamodels to estimate the power spectra of population spiking activities and local field potentials (LFPs) generated by a two-population neuronal network comprising an excitatory and an inhibitory population during stationary activity. Specifically, we have trained a deep Gaussian process regression (DGPR) model, and a faster masked autoregressive flow (MAF) model, and used the probabilistic nature of the metamodels to estimate posterior distributions over parameters given observed simulation outputs. DGPR models have not been much used for statistical modelling in the field of neuroscience before, and we chose to compare it to the MAF as it is a commonly used model for both forward modelling in the case of SNLE and inverse modelling in the case of SNPE.</p>
<p>Both the population spiking activities and the LFP were modelled, as this offers an opportunity to compare the information about the parameters that can be gained by observing different signals. The LFP was computed separately for each population using <xref ref-type="disp-formula" rid="pcbi.1011625.e030">Eq 10</xref>. This is an approximation that does not require computing the LFP response from each individual neuron in each simulation, which is computationally costly, but only requires computing a small number of kernels, which can then be used to approximate the LFP for all simulations. The synaptic parameters can be fully adjusted for by a single simulation of a kernel, but the neuron membrane conductance and capacitance, cannot be adjusted for analytically. Kernels were therefore computed on a grid of these two parameters, and regression was done to approximate the true kernel for any value of the membrane conductance and capacitance. As shown in <xref ref-type="supplementary-material" rid="pcbi.1011625.s004">S4 Supplementary Section</xref>, the approximation works well, although there are some small deviations, particularly in channels 4 and 5.</p>
<p>The neuron and synapse parameters of the simulations were varied, with values described in <xref ref-type="table" rid="pcbi.1011625.t002">Table 2</xref>, while the number of neurons and number of synapses were fixed. The parameter values were chosen such that the strongly synchronous regions of the parameter space were avoided, particularly avoiding relative inhibitory synaptic strengths that lead to an unbalanced regime. This will also have excluded some AI-like simulations in the vicinity of the boundary between AI and SR, but we consider the difference (starting at <italic>g</italic> = 4.5 instead of <italic>g</italic> = 4.0) to be sufficiently small as to not significantly diminish the utility of the models. Additionally, a small number of simulations in the strongly synchronous irregular regime were removed, comprising roughly 3% of the total number of simulations as described in Sections 2.1 and 3.1. The simulations in the test and training data sets consisted mostly of simulations in the asynchronous irregular (AI) regime. The simulations with strongly synchronous spiking activities were avoided since sharp peaks that shift continuously in frequency cannot be well approximated by a low-dimensional representation, and the low-rank approximation was necessary to keep the size of the DGPR metamodel small. The low-rank approximation is a limiting factor for the DGPR metamodel, and ideally one would not have to limit the input domain in such a way. Increasing the dimensionality of the latent space significantly is possible and would possibly also have resulted in better accuracy, even in the case of strongly synchronous activity, particularly with a larger training data set, but trade-offs have to be made with respect to the computational cost of training and evaluating the metamodels. The simulations in the AI regime could be well approximated by a low-dimensional representation, and since one is often particularly interested in this regime, we consider it reasonable to focus the metamodels on this.</p>
<p>The power spectra were modelled instead of the time series. Although modelling time series directly in many cases would be preferable, that would require modelling the complex temporal dependencies in the neural networks, which are also stochastic due to the external input to the network modelled as a Poisson process. Since most regression techniques assume a fixed target, modelling the power spectra is more straightforward. For the present situation, we found that both the DGPR and MAF metamodels were able to accurately predict the power spectrum of the population spiking activities, with 10 different model parameters as inputs, and we found that on the order of around 1000 examples is sufficient to accurately represent the model in this particular region of the parameter space. In general, the number of examples needed to train a metamodel will depend on the number of parameters included, the range of their values and how much they affect the model output. It is difficult to predict a priori, and the presently used model may not be representative for other, more complex models, which may require more training examples.</p>
<p>Theoretical approaches based on linear-response theory can provide analytical approximations to the PSDs [<xref ref-type="bibr" rid="pcbi.1011625.ref042">42</xref>–<xref ref-type="bibr" rid="pcbi.1011625.ref045">45</xref>] in the asynchronous irregular regime. The theoretical models necessarily make assumptions about the underlying physics of the system, which also makes it possible to interpret them in ways that are not possible with purely data-driven methods. Data-driven methods are complementary to theoretical ones in the sense that they do not make any underlying assumption about the model, but comes at the price of interpretability and needing to run simulations to train the models.</p>
<p>The forward modelling of the population spiking activities and the LFP is similar in terms of difficulty, where the errors of the DGPR metamodels are similar. This may not be surprising, as the LFP is computed as a convolution of the population spiking activities. The low-pass filtering effects of synaptic and dendritic filtering makes the power spectrum of the LFP smoother than the population spiking activities, however, which could potentially have made it an easier target [<xref ref-type="bibr" rid="pcbi.1011625.ref046">46</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref047">47</xref>].</p>
<p>Comparing the DGPR metamodel to the MAF metamodel, we found that the DGPR metamodel provided better accuracy, but comes at the price of a higher cost of training. When it comes to running the trained models, the MAF is significantly faster than DGPR for evaluating the log probability, and therefore also when estimating posterior distributions. For purely sampling the forward model, the DGPR is faster than the MAF metamodel. This is not surprising, as the MAF model is designed to be good at evaluating log probabilities, at the cost of being slow at sampling. The time it takes both to train and evaluate the metamodels will depend strongly on the available hardware. GPU acceleration makes it significantly faster, and solely using CPUs would significantly increase the time of training/evaluating the metamodels.</p>
<p>The MAF metamodel suffered significantly more from overfitting compared to the DGPR metamodel. Simply increasing the number of simulations used to train the models would likely reduce the differences between the two metamodels. It is also possible that more regularization techniques could have increased the performance of the MAF, although utilizing dropout did not significantly improve the model.</p>
<p>For inverse modelling, the benefit of using the more computationally demanding DGPR will likely be smaller if one is doing sequential inference, and the region in which the metamodel must be accurate is smaller. Also depending on the complexity of the simulator one is approximating, in cases where one wants an accurate model over a larger domain, increased accuracy may be well worth the increased computational cost.</p>
<p>The HCPLSR metamodel, shown in <xref ref-type="supplementary-material" rid="pcbi.1011625.s003">S3 Supplementary Section</xref>, is significantly faster than both the DGPR and MAF metamodels, but at the cost of only giving a point-estimate of the simulation output, and less flexibility. For cases where one is only interested in the forward modelling, such alternatives can also be an option.</p>
<sec id="sec015">
<title>4.1 Model inversion</title>
<p>One key motivation for using probabilistic metamodels is that it allows inverting the model and finding posterior distributions over parameters given observed outputs. We opted to sample the posterior using an adaptive Metropolis algortihm as it is simple to implement and worked well for the present problem. The Gelman-Rubin statistic was computed, and for most of the sampled posterior distributions (&gt; 90%), it was below 1.1, which is often considered to indicate convergence [<xref ref-type="bibr" rid="pcbi.1011625.ref048">48</xref>]. For some of the posterior distributions, the chains did not converge, although this was likely only for a minority. Particularly for the examples on which the forward predictions are poor, we would not expect the estimated posterior distributions to be accurate, as the metamodel generally will not produce outputs which are similar to the observed output used to generate the posteriors.</p>
<p>The degree to which the different model parameters were constrained by observing an output varied highly (see <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5B</xref>). Notably the distribution over most neuron parameters were wide, while the distribution over synapse and input parameters were narrower. Interestingly, the synaptic strength (<italic>Q</italic><sub>s</sub>) and membrane capacitance (<italic>C</italic><sub>m</sub>) were significantly more constrained by the LFP than by the population spiking activities, illustrating the utility of using different signals for model validation. The effect is likely due to the fact that LFP is directly dependent on both the post-synaptic currents as well as the population spiking activities. The effect was not seen for the synaptic time constant, which also directly influences the post-synaptic current, something that indicates that the extra information may be in the scale of the LFP, as that is directly determined by the scale of the post-synaptic currents. The remaining parameters were similarly constrained by both signals, indicating that for the present situation, both signals may contain similar information about the parameters.</p>
<p>A previous study on model inversion using the LFP of a similar network using convolutional neural network [<xref ref-type="bibr" rid="pcbi.1011625.ref030">30</xref>] provided more accurate predictions of parameter values. In that study, neuron models with delta synapses were used, and it was limited to only three parameters, which likely makes it an easier task. Particularly, wide marginal posterior distributions might only be possible if there are sufficiently many parameters that are free to vary such that they can compensate for the effects of other parameters. An interesting question which we did not pursue here is to what degree keeping the different parameters fixed constrains the remaining parameters given observed simulation outputs.</p>
<p>Comparing the posterior distributions generated from the DGPR metamodel to the posterior distribution generated from the MAF metamodel, we find that the posterior distributions from the DGPR metamodel are wider, while simultaneously having a significantly narrower posterior predictive distribution. In other words, it is able to find a larger region of the parameter space that gives more similar outputs compared to the MAF metamodel. This shows the importance of accurate forward modelling in order to find good posterior distributions, an area where DGPR metamodels can be useful also in other settings when dealing with data from complex simulations.</p>
<p>Methods such as Approximate Bayesian Computation (ABC) and Simulation-based Inference (SBI) can also be used to estimate posterior distributions over parameters given specific observed model outputs. Our work is closely related to SBI, particularly SNLE [<xref ref-type="bibr" rid="pcbi.1011625.ref013">13</xref>]. The approach in the present work can be considered the same as SNLE run for a single round, where we use the DGPR metamodel as a likelihood estimator. Thus, in cases where one is interested in estimating posterior distributions, particularly in cases where one has limited data and model flexibility is a concern, DGPR metamodels may be of use in the SNLE framework. Methods such as Sequential Neural Variational Inference [<xref ref-type="bibr" rid="pcbi.1011625.ref049">49</xref>] for estimating the posterior distribution instead of MCMC sampling can also readily be used with the DGPR metamodel.</p>
</sec>
<sec id="sec016">
<title>4.2 Generalization to more complex network models</title>
<p>The two-population model is fairly simple, and is a useful starting point since the dynamics are well known, and the simulations are cheap to run. A natural question is how well these metamodelling techniques generalize to more complex networks such as a multi-population model of cortical circuitry [<xref ref-type="bibr" rid="pcbi.1011625.ref050">50</xref>], a multi-area model of the visual system [<xref ref-type="bibr" rid="pcbi.1011625.ref051">51</xref>, <xref ref-type="bibr" rid="pcbi.1011625.ref052">52</xref>], or a large-scale model of mouse primary visual cortex [<xref ref-type="bibr" rid="pcbi.1011625.ref053">53</xref>]. Models with more populations will have more potential model outputs to capture, and richer dynamics, and a larger number of parameters will yield a higher dimensional input space. The expressiveness of the metamodels may have to increase, and the number of samples needed to train a metamodel will likely be much higher. Of course, the number of parameters one chooses to include is arbitrary, and if one is only interested in a subset of the parameters, that can be modelled more cheaply. It is interesting to note, however, that in the present case, the power spectra mostly in the AI regime can be accurately captured by a low-dimensional latent representation.</p>
<p>In the present case, we model the external spiking input as a constant rate Poisson process, parameterised by the variable <italic>η</italic>. In more realistic networks, the input to the network will generally be more patterned. The parameters in the network we used were also kept constant, while in more realistic networks the parameters might follow a statistical distribution instead. Similar methods can be used to find the parameters of such distributions instead of the constant value as in the present case. Patterned input could also be represented in a metamodel, either through some continuous input to the model if the input changes in a continuous manner, or possibly discretely, in which case it may be necessary to train multiple metamodels for each input class separately.</p>
<p>The metamodels can easily be made more flexible, for the DGPR metamodel by increasing the number of GPs in either layer, and increasing the dimensionality in the latent space, and for the MAF metamodel by increasing the number of transformations or increasing the number of hidden features in each transformation. This will lead to higher computational costs, but more complex neural networks are of course also more costly to run, so the relative benefit may not change. In the present case, sampling was done using Latin Hypercube sampling, which ensures that each parameter is uniformly sampled. This can potentially lead to a too dense sampling in regions of the parameter space where the metamodel performs well, and too sparse sampling in regions where the metamodel performs poorly. Methods for adaptively sampling only or mostly in regions where additional sampling is needed would be an interesting direction for future research.</p>
</sec>
<sec id="sec017">
<title>4.3 Use of metamodels</title>
<p>Once a metamodel has been trained, it can be evaluated much more rapidly than the model it is trained on. If it is well calibrated, it should be able to interpolate accurately inside the volume of the parameter space which was used to train it, and give a continuous approximation to the model behaviour. For models which are computationally demanding, trained metamodels could be distributed for use by others without requiring large computational resources.</p>
<p>For working with experimental data, metamodels could be useful in different ways. In the context of SBI, metamodels can be used as likelihood estimators in order to find parameters fitting network models to observed experimental data, in the same manner as in this work. Depending on which phenomena one is interested in modelling, this might require larger and more realistic network models than the one used here, but the principle would be the same. In the context of forward modelling, metamodels could be applied to experimental data to guide the choice of experimental parameters and their effects on experimental outcomes. How well this would work in practice, however, is not known. It would require training to specific experimental settings, and could be an interesting direction of future research.</p>
</sec>
<sec id="sec018">
<title>4.4 Conclusion</title>
<p>We have shown that for the present situation, the power spectra of the population spiking activities and the local field potential can be accurately modelled by the DGPR and MAF metamodels, over a domain largely consisting of activity in the AI regime. The DGPR metamodel performed better than the MAF metamodel, but at the cost of higher computational demands for training and evaluation. The trained metamodels can be used to estimate posterior distributions over simulation parameters given observed simulation outputs. The posterior distribution estimated from the DGPR metamodel had higher marginal variances compared to the posterior distributions estimated from the MAF metamodel, while the posterior predictive distributions from the DGPR metamodel were narrower compared to the posterior predictive distributions from the MAF metamodel, indicating more accurate posterior distributions. When dealing with complex models, utilizing DGPR for forward modelling may therefore be a good alternative, particularly when the amount of data is a limiting factor, and the increased training time is not a problem.</p>
<p>Based on the estimated posterior distributions, the LFP was found to contain significantly more information about the synaptic strength and membrane capacitance, while for the remaining eight parameters, both signals were equally informative.</p>
</sec>
</sec>
<sec id="sec019" sec-type="supplementary-material">
<title>Supporting information</title>
<supplementary-material id="pcbi.1011625.s001" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.s001" xlink:type="simple">
<label>S1 Supplementary Section</label>
<caption>
<title>Hyperparameter scans for determining best metamodel configurations.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pcbi.1011625.s002" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.s002" xlink:type="simple">
<label>S2 Supplementary Section</label>
<caption>
<title>Full posterior distributions from which the subset in <xref ref-type="fig" rid="pcbi.1011625.g005">Fig 5</xref> is taken.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pcbi.1011625.s003" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.s003" xlink:type="simple">
<label>S3 Supplementary Section</label>
<caption>
<title>Hierarchical Partial Least Squares Regression.</title>
<p>Description and results from HCPLSR metamodel.</p>
<p>(PDF)</p>
</caption>
</supplementary-material>
<supplementary-material id="pcbi.1011625.s004" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.s004" xlink:type="simple">
<label>S4 Supplementary Section</label>
<caption>
<title>Validation of LFP computation scheme.</title>
<p>(PDF)</p>
</caption>
</supplementary-material>
</sec>
</body>
<back>
<ref-list>
<title>References</title>
<ref id="pcbi.1011625.ref001">
<label>1</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Einevoll</surname> <given-names>GT</given-names></name>, <name name-style="western"><surname>Destexhe</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Diesmann</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Grün</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Jirsa</surname> <given-names>V</given-names></name>, <name name-style="western"><surname>de</surname> <given-names>Kamps M</given-names></name>, <name name-style="western"><surname>Migliore</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Ness</surname> <given-names>TV</given-names></name>, <name name-style="western"><surname>Plesser</surname> <given-names>HE</given-names></name>, <name name-style="western"><surname>Schürmann</surname> <given-names>F</given-names></name>. <source>The Scientific Case for Brain Simulations Neuron</source>. <year>2019</year>;<volume>4</volume>:<fpage>735</fpage>–<lpage>744</lpage></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref002">
<label>2</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Dayan</surname> <given-names>P</given-names></name>, <name name-style="western"><surname>Abbott</surname> <given-names>LF</given-names></name>. <source>Theoretical Neuroscience</source>. <publisher-name>MIT Press</publisher-name>, <publisher-loc>Cambridge</publisher-loc>; <year>2001</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref003">
<label>3</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Koch</surname> <given-names>C</given-names></name>. <source>Biophysics of Computation</source>. <publisher-name>Oxford Univ Press</publisher-name>, <publisher-loc>Oxford</publisher-loc>; <year>1999</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref004">
<label>4</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Sterratt</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Graham</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Gillies</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Willshaw</surname> <given-names>D</given-names></name>. <source>Principles of Computational Modelling in Neuroscience</source>. <publisher-name>Cambridge University Press</publisher-name>; <year>2011</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref005">
<label>5</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Brunel</surname> <given-names>N</given-names></name>. <article-title>Dynamics of sparsely connected networks of excitatory and inhibitory neurons</article-title>. <source>Computational Neuroscience</source>. <year>2000</year>;<volume>8</volume>:<fpage>183</fpage>–<lpage>208</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1023/A:1008925309027" xlink:type="simple">10.1023/A:1008925309027</ext-link></comment></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref006">
<label>6</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Einevoll</surname> <given-names>GT</given-names></name>, <name name-style="western"><surname>Kayser</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Logothetis</surname> <given-names>NK</given-names></name>, <name name-style="western"><surname>Panzeri</surname> <given-names>S</given-names></name>. <article-title>Modelling and analysis of local field potentials for studying the function of cortical circuits</article-title>. <source>Nat Rev Neurosci</source>. <year>2013</year> <month>Nov</month>;<volume>14</volume>(<issue>11</issue>):<fpage>770</fpage>–<lpage>85</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/nrn3599" xlink:type="simple">10.1038/nrn3599</ext-link></comment> <object-id pub-id-type="pmid">24135696</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref007">
<label>7</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Martens</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Tøndel</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Tafintseva</surname> <given-names>V</given-names></name>, <name name-style="western"><surname>Kohler</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Plahte</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Vik</surname> <given-names>JO</given-names></name>, <name name-style="western"><surname>Gjuvsland</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Omholt</surname> <given-names>S</given-names></name>. <source>PLS-Based Multivariate Metamodeling of Dynamic Systems Springer Proceedings in Mathematics and Statistics</source>. <year>2013</year>;<volume>56</volume></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref008">
<label>8</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Tøndel</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Martens</surname> <given-names>H</given-names></name>. <article-title>Analyzing complex mathematical model behavior by partial least squares regression-based multivariate metamodeling</article-title>. <source>WIREs Computational Statistics</source>. <year>2014</year>;<volume>6</volume>:<fpage>440</fpage>–<lpage>475</lpage> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/wics.1325" xlink:type="simple">10.1002/wics.1325</ext-link></comment></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref009">
<label>9</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Sunnåker</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Busetto</surname> <given-names>AG</given-names></name>, <name name-style="western"><surname>Numminen</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Corander</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Foll</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Dessimoz</surname> <given-names>C</given-names></name>. <source>Approximate Bayesian Computation PLOS Computational Biology</source>. <year>2013</year>;<volume>9</volume>:<fpage>1</fpage>–<lpage>10</lpage></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref010">
<label>10</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Tavaré</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Balding</surname> <given-names>DJ</given-names></name>, <name name-style="western"><surname>Griffiths</surname> <given-names>RC</given-names></name>, <name name-style="western"><surname>Donnelly</surname> <given-names>P</given-names></name>. <article-title>Inferring coalescence times from DNA sequence data</article-title>. <source>Genetics</source>. <year>1997</year>;<volume>145</volume>:<fpage>505</fpage>–<lpage>518</lpage> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/genetics/145.2.505" xlink:type="simple">10.1093/genetics/145.2.505</ext-link></comment> <object-id pub-id-type="pmid">9071603</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref011">
<label>11</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Papamakarios</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Murray</surname> <given-names>I</given-names></name> <source>Fast <italic>ϵ</italic>-free Inference of Simulation Models with Bayesian Conditional Density Estimation NIPS</source>. <year>2016</year>. <fpage>1036</fpage>–<lpage>1044</lpage> <object-id pub-id-type="pmid">26696337</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref012">
<label>12</label>
<mixed-citation publication-type="other" xlink:type="simple">Lueckmann JM, Gonçalves PJ, Bassetto G,Öcal K, Nonnenmacher M, Macke JH Flexible Statistical Inference for Mechanistic Models of Neural Dynamics. Proceedings of the 31st International Conference on Neural Information Processing Systems. 2017:1289-1299</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref013">
<label>13</label>
<mixed-citation publication-type="other" xlink:type="simple">Papamakarios G, Sterratt DC, Murray I Sequential Neural Likelihood: Fast Likelihood-free Inference with Autoregressive Flows. The 22nd International Conference on Artificial Intelligence and Statistics. 2018:837-848</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref014">
<label>14</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Gerstner</surname> <given-names>W</given-names></name>,<name name-style="western"><surname>Kistler</surname> <given-names>WM</given-names></name>, <name name-style="western"><surname>Naud</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Paninski</surname> <given-names>L</given-names></name>. <article-title>Neuronal Dynamics: From Single Neurons to Networks and Models of Cognition</article-title>. <source>Cambridge University Press</source>. <year>2014</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref015">
<label>15</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Schwalger</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Deger</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Gerstner</surname> <given-names>W</given-names></name>. <article-title>Towards a theory of cortical columns: From spiking neurons to interacting neural populations of finite size</article-title>. <source>PLOS Computational Biology</source>. <year>2017</year>;<volume>13</volume>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1005507" xlink:type="simple">10.1371/journal.pcbi.1005507</ext-link></comment> <object-id pub-id-type="pmid">28422957</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref016">
<label>16</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Buzsáki</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Anastassiou</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Koch</surname> <given-names>C</given-names></name>. <article-title>The origin of extracellular fields and currents–EEG, ECoG, LFP and spikes</article-title>. <source>Nature Reviews Neuroscience</source>. <year>2012</year>;<volume>13</volume>(<issue>6</issue>):<fpage>407</fpage>–<lpage>420</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/nrn3241" xlink:type="simple">10.1038/nrn3241</ext-link></comment> <object-id pub-id-type="pmid">22595786</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref017">
<label>17</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Pesaran</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Vinck</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Einevoll</surname> <given-names>GT</given-names></name>, <name name-style="western"><surname>Sirota</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Fries</surname> <given-names>P</given-names></name>, <name name-style="western"><surname>Siegel</surname> <given-names>M</given-names></name>, <etal>et al</etal>. <article-title>Investigating large-scale brain dynamics using field potential recordings: analysis and interpretation</article-title>. <source>Nature Neuroscience</source>. <year>2018</year>;<volume>21</volume>(<issue>7</issue>):<fpage>903</fpage>–<lpage>919</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41593-018-0171-8" xlink:type="simple">10.1038/s41593-018-0171-8</ext-link></comment> <object-id pub-id-type="pmid">29942039</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref018">
<label>18</label>
<mixed-citation publication-type="book" xlink:type="simple">
<name name-style="western"><surname>Rasmussen</surname> <given-names>CE</given-names></name>, <name name-style="western"><surname>Williams</surname> <given-names>CKI</given-names></name>. <source>Gaussian Processes for Machine Learning</source> <publisher-name>MIT Press</publisher-name>. <year>2006</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref019">
<label>19</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Papamakarios</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Pavlakou</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Murray</surname> <given-names>I</given-names></name>. <source>Masked Autoregressive Flow for Density Estimation</source>. <year>2017</year></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref020">
<label>20</label>
<mixed-citation publication-type="other" xlink:type="simple">Hensman J, Fusi N, Lawrence ND. Gaussian Processes for Big Data. In Proceedings of the Twenty-Ninth Conference on Uncertainty in Artificial Intelligence. 2013. 282–290</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref021">
<label>21</label>
<mixed-citation publication-type="other" xlink:type="simple">Titsias M. Variational Learning of Inducing Variables in Sparse Gaussian Processes Proceedings of the Twelth International Conference on Artificial Intelligence and Statistics. 2009;5:567–574</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref022">
<label>22</label>
<mixed-citation publication-type="other" xlink:type="simple">Damianou A, Lawrence ND. Deep Gaussian Processes. Proceedings of the Sixteenth International Conference on Artificial Intelligence and Statistics. 2013;31:207–215</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref023">
<label>23</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Salimbeni</surname> <given-names>H</given-names></name>, <article-title>Deisenroth M Doubly Stochastic Variational Inference for Deep Gaussian Processes</article-title>. <source>Advances in Neural Information Processing Systems</source>. <year>2017</year>;<volume>30</volume>:<fpage>4591</fpage>–<lpage>4602</lpage></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref024">
<label>24</label>
<mixed-citation publication-type="other" xlink:type="simple">Bui T, Hernandez-Lobato D, Hernandez-Lobato J, Li Y, Turner R. Deep Gaussian Processes for Regression using Approximate Expectation Propagation. Proceedings of The 33rd International Conference on Machine Learning. 2016;48:1472–1481</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref025">
<label>25</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Tøndel</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Indahl</surname> <given-names>UG</given-names></name>, <name name-style="western"><surname>Gjuvsland</surname> <given-names>AB</given-names></name> <etal>et al</etal>. <article-title>Hierarchical Cluster-based Partial Least Squares Regression (HC-PLSR) is an efficient tool for metamodelling of nonlinear dynamic models</article-title>. <source>BMC Syst Biol</source> <volume>5</volume>, <fpage>90</fpage> (<year>2011</year>). <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1186/1752-0509-5-90" xlink:type="simple">10.1186/1752-0509-5-90</ext-link></comment> <object-id pub-id-type="pmid">21627852</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref026">
<label>26</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Tøndel</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Vik</surname> <given-names>JO</given-names></name>, <name name-style="western"><surname>Martens</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Indahl</surname> <given-names>UG</given-names></name>, <name name-style="western"><surname>Smith</surname> <given-names>N</given-names></name>, <name name-style="western"><surname>Omholt</surname> <given-names>SW</given-names></name>. <article-title>Hierarchical multivariate regression-based sensitivity analysis reveals complex parameter interaction patterns in dynamic models</article-title>, <source>Chemometrics and Intelligent Laboratory Systems</source>. <year>2013</year>;<volume>120</volume>:<fpage>25</fpage>–<lpage>41</lpage> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.chemolab.2012.10.006" xlink:type="simple">10.1016/j.chemolab.2012.10.006</ext-link></comment></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref027">
<label>27</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>McKay</surname> <given-names>MD</given-names></name>, <name name-style="western"><surname>Beckman</surname> <given-names>RJ</given-names></name>, <name name-style="western"><surname>Conover</surname> <given-names>WJ</given-names></name>. <source>Comparison of Three Methods for Selecting Values of Input Variables in the Analysis of Output from a Computer Code</source>. <year>1979</year>;<volume>21</volume>:<fpage>239</fpage>–<lpage>245</lpage></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref028">
<label>28</label>
<mixed-citation publication-type="other" xlink:type="simple">Fardet T, Vennemo SB, Mitchell J, Mørk H, Graber S, Hahne J, et al. NEST 2.20.0. Zenodo. 2020.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref029">
<label>29</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Gewaltig</surname> <given-names>M-O</given-names></name>, <name name-style="western"><surname>Diesmann</surname> <given-names>M</given-names></name>. <source>NEST (NEural Simulation Tool) Scholarpedia</source>. <year>2007</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref030">
<label>30</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Skaar</surname> <given-names>J-EW</given-names></name>, <name name-style="western"><surname>Stasik</surname> <given-names>AJ</given-names></name>, <name name-style="western"><surname>Hagen</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Ness</surname> <given-names>TV</given-names></name>, <name name-style="western"><surname>Einevoll</surname> <given-names>GT</given-names></name>. <article-title>Estimation of neural network model parameters from local field potentials (LFPs)</article-title> <source>PLOS Computational Biology</source>. <year>2020</year>;<volume>16</volume> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1007725" xlink:type="simple">10.1371/journal.pcbi.1007725</ext-link></comment> <object-id pub-id-type="pmid">32155141</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref031">
<label>31</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Welch</surname> <given-names>P</given-names></name>. <article-title>The use of fast Fourier transform for the estimation of power spectra: a method based on time averaging over short, modified periodograms</article-title>. <source>IEEE Transactions on audio and electroacoustics</source>. <year>1967</year>;<volume>15</volume>(<issue>2</issue>):<fpage>70</fpage>–<lpage>73</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TAU.1967.1161901" xlink:type="simple">10.1109/TAU.1967.1161901</ext-link></comment></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref032">
<label>32</label>
<mixed-citation publication-type="other" xlink:type="simple">Jones E, Oliphant T, Peterson P, et al. SciPy: Open source scientific tools for Python; 2001–. Available from: <ext-link ext-link-type="uri" xlink:href="http://www.scipy.org/" xlink:type="simple">http://www.scipy.org/</ext-link>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref033">
<label>33</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Nordlie</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Gewaltig</surname> <given-names>MO</given-names></name>, <name name-style="western"><surname>Plesser</surname> <given-names>HE</given-names></name>. <article-title>Towards Reproducible Descriptions of Neuronal Network Models</article-title>. <source>PLoS Computational Biology</source>. <year>2009</year>;<volume>5</volume>(<issue>8</issue>):<fpage>e1000456</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1000456" xlink:type="simple">10.1371/journal.pcbi.1000456</ext-link></comment> <object-id pub-id-type="pmid">19662159</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref034">
<label>34</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Hagen</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Dahmen</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Stavrinou</surname> <given-names>ML</given-names></name>, <name name-style="western"><surname>Lindén</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Tetzlaff</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>van Albada</surname> <given-names>SJ</given-names></name>, <etal>et al</etal>. <article-title>Hybrid Scheme for Modeling Local Field Potentials from Point-Neuron Networks</article-title>. <source>Cerebral Cortex</source>. <year>2016</year>;<volume>26</volume>(<issue>12</issue>):<fpage>4461</fpage>–<lpage>4496</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/cercor/bhw237" xlink:type="simple">10.1093/cercor/bhw237</ext-link></comment> <object-id pub-id-type="pmid">27797828</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref035">
<label>35</label>
<mixed-citation publication-type="other" xlink:type="simple">Leibfried F, Dutordoir V, John S, Durrande N. A Tutorial on Sparse Gaussian Processes and Variational Inference. arXiv:2012.13962</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref036">
<label>36</label>
<mixed-citation publication-type="other" xlink:type="simple">van der Wilk M, Dutordoir V, John ST, Artemev A, Adam V, Hensman J. A Framework for Interdomain and Multioutput Gaussian Processes. arXiv. 2020</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref037">
<label>37</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Haario</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Saksman</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Tamminen</surname> <given-names>J</given-names></name>. <article-title>An Adaptive Metropolis Algorithm</article-title>. <source>Bernoulli</source>, <volume>7</volume>(<issue>2</issue>), <fpage>223</fpage>–<lpage>242</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.2307/3318737" xlink:type="simple">10.2307/3318737</ext-link></comment></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref038">
<label>38</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Gelman</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Rubin DB Inference from Iterative Simulation Using Multiple</surname> <given-names>Sequences</given-names></name>. <source>Statistical Science</source>. <year>1992</year>;<volume>7</volume>:<fpage>457</fpage>–<lpage>472</lpage>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref039">
<label>39</label>
<mixed-citation publication-type="other" xlink:type="simple">Hagen E, Ness TV LFPy. <ext-link ext-link-type="uri" xlink:href="https://github.com/LFPy/LFPy" xlink:type="simple">https://github.com/LFPy/LFPy</ext-link></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref040">
<label>40</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Gardner</surname> <given-names>JR</given-names></name>, <name name-style="western"><surname>Pleiss</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Bindel</surname> <given-names>D</given-names></name>, <name name-style="western"><surname>Weinberger</surname> <given-names>KQ</given-names></name>, <name name-style="western"><surname>Wilson</surname> <given-names>AG</given-names></name>. <article-title>GPyTorch: Blackbox Matrix-Matrix Gaussian Process Inference with GPU Acceleration</article-title>. <source>Advances in Neural Information Processing Systems</source>. <year>2018</year>. <fpage>7587</fpage>–<lpage>7597</lpage></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref041">
<label>41</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Tejero-Cantero</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Boelts</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Deistler</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Lueckmann</surname> <given-names>JM</given-names></name>, <name name-style="western"><surname>Durkan</surname> <given-names>C</given-names></name>, <name name-style="western"><surname>Gonçalves</surname> <given-names>PJ</given-names></name>, <etal>et al</etal>. <article-title>sbi: A toolkit for simulation-based inference</article-title> <source>Journal of Open Source Software</source>. <volume>5</volume>. <fpage>52</fpage>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref042">
<label>42</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Lindner</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Doiron</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Longtin</surname> <given-names>A</given-names></name> <article-title>Theory of oscillatory firing induced by spatially correlated noise and delayed inhibitory feedback</article-title> <source>Phys. Rev</source>. E <volume>6</volume>, <fpage>72</fpage> (<year>2005</year>) <object-id pub-id-type="pmid">16485986</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref043">
<label>43</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Deger</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Schwalger</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Naud</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Gerstner</surname> <given-names>W</given-names></name> <article-title>Fluctuations and information filtering in coupled populations of spiking neurons with adaptation</article-title> <source>Phys. Rev</source>. E <volume>90</volume>, <fpage>6</fpage> (<year>2014</year>) <object-id pub-id-type="pmid">25615126</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref044">
<label>44</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Bos</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Diesmann</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Helias</surname> <given-names>M</given-names></name> <article-title>Identifying Anatomical Origins of Coexisting Oscillations in the Cortical Microcircuit</article-title>. <source>PLoS Comput Biol</source> <volume>12</volume>(<issue>10</issue>): <fpage>e1005132</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1005132" xlink:type="simple">10.1371/journal.pcbi.1005132</ext-link></comment> <object-id pub-id-type="pmid">27736873</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref045">
<label>45</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Trousdale</surname> <given-names>J</given-names></name>, <name name-style="western"><surname>Hu</surname> <given-names>Y</given-names></name>, <name name-style="western"><surname>Shea-Brown</surname> <given-names>E</given-names></name>, <name name-style="western"><surname>Josić</surname> <given-names>K</given-names></name> <article-title>Impact of Network Structure and Cellular Response on Spike Time Correlations</article-title>. <source>PLoS Comput Biol</source> <volume>8</volume>(<issue>3</issue>): <fpage>e1002408</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1002408" xlink:type="simple">10.1371/journal.pcbi.1002408</ext-link></comment> <object-id pub-id-type="pmid">22457608</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref046">
<label>46</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Łęski</surname> <given-names>S</given-names></name>, <name name-style="western"><surname>Lindén</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Tetzlaff</surname> <given-names>T</given-names></name>, <name name-style="western"><surname>Pettersen</surname> <given-names>KH</given-names></name>, <name name-style="western"><surname>Einevoll</surname> <given-names>GT</given-names></name>. <article-title>Frequency Dependence of Signal Power and Spatial Reach of the Local Field Potential</article-title>. <source>PLoS Computational Biology</source>. <year>2013</year>;<volume>9</volume>(<issue>7</issue>):<fpage>e1003137</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1003137" xlink:type="simple">10.1371/journal.pcbi.1003137</ext-link></comment> <object-id pub-id-type="pmid">23874180</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref047">
<label>47</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Lindén</surname> <given-names>H</given-names></name>, <name name-style="western"><surname>Pettersen</surname> <given-names>KH</given-names></name>, <name name-style="western"><surname>Einevoll</surname> <given-names>GT</given-names></name>. <article-title>Intrinsic dendritic filtering gives low-pass power spectra of local field potentials</article-title>. <source>Journal of computational neuroscience</source>. <year>2010</year>;<volume>29</volume>(<issue>3</issue>):<fpage>423</fpage>–<lpage>444</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s10827-010-0245-4" xlink:type="simple">10.1007/s10827-010-0245-4</ext-link></comment> <object-id pub-id-type="pmid">20502952</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref048">
<label>48</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Gelman</surname> <given-names>A</given-names></name>, <name name-style="western"><surname>Carlin</surname> <given-names>JB</given-names></name>, <name name-style="western"><surname>Stern</surname> <given-names>HS</given-names></name>, <name name-style="western"><surname>Rubin</surname> <given-names>DB</given-names></name>. <article-title>Bayesian Data Analysis</article-title>. <source>Chapman and Hall/CRC</source>. <year>2004</year>.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref049">
<label>49</label>
<mixed-citation publication-type="other" xlink:type="simple">Glöckler M, Deistler M, Macke JH. Variational methods for simulation-based inference arXiv. 2203.04176. 2022.</mixed-citation>
</ref>
<ref id="pcbi.1011625.ref050">
<label>50</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Potjans</surname> <given-names>TC</given-names></name>, <name name-style="western"><surname>Diesmann</surname> <given-names>M</given-names></name>. <article-title>The Cell-Type Specific Cortical Microcircuit: Relating Structure and Activity in a Full-Scale Spiking Network Model</article-title>. <source>Cerebral Cortex</source>. <year>2014</year>;<volume>24</volume>(<issue>3</issue>):<fpage>785</fpage>–<lpage>806</lpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/cercor/bhs358" xlink:type="simple">10.1093/cercor/bhs358</ext-link></comment> <object-id pub-id-type="pmid">23203991</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref051">
<label>51</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Schmidt</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Bakker</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Hilgetag</surname> <given-names>CC</given-names></name>, <name name-style="western"><surname>Diesmann</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>van Albada</surname> <given-names>SJ</given-names></name>. <article-title>Multi-scale account of the network structure of macaque visual cortex</article-title>. <source>Brain Structure and Function</source>. <year>2018</year>;<volume>223</volume>:<fpage>1409</fpage>–<lpage>1435</lpage> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s00429-017-1554-4" xlink:type="simple">10.1007/s00429-017-1554-4</ext-link></comment> <object-id pub-id-type="pmid">29143946</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref052">
<label>52</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Schmidt</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>Bakker</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Shen</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Bezgin</surname> <given-names>G</given-names></name>, <name name-style="western"><surname>Diesmann</surname> <given-names>M</given-names></name>, <name name-style="western"><surname>van Albada</surname> <given-names>SJ</given-names></name>. <article-title>A multi-scale layer-resolved spiking network model of resting-state dynamics in macaque visual cortical areas</article-title>. (<year>2018</year>) <source>PLoS Comput Biol</source> <volume>14</volume>(<issue>10</issue>): <fpage>e1006359</fpage>. <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1371/journal.pcbi.1006359" xlink:type="simple">10.1371/journal.pcbi.1006359</ext-link></comment> <object-id pub-id-type="pmid">30335761</object-id></mixed-citation>
</ref>
<ref id="pcbi.1011625.ref053">
<label>53</label>
<mixed-citation publication-type="journal" xlink:type="simple">
<name name-style="western"><surname>Billeh</surname> <given-names>YN</given-names></name>, <name name-style="western"><surname>Cai</surname> <given-names>B</given-names></name>, <name name-style="western"><surname>Gratiy</surname> <given-names>SL</given-names></name>, <name name-style="western"><surname>Dai</surname> <given-names>K</given-names></name>, <name name-style="western"><surname>Iyer</surname> <given-names>R</given-names></name>, <name name-style="western"><surname>Gouwens</surname> <given-names>NW</given-names></name>, <etal>et al</etal>. <article-title>Systematic Integration of Structural and Functional Data into Multi-scale Models of Mouse Primary Visual Cortex</article-title>. <source>Neuron</source>. <year>2020</year>;<volume>3</volume>:<fpage>388</fpage>–<lpage>403</lpage> <comment>doi: <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.neuron.2020.01.040" xlink:type="simple">10.1016/j.neuron.2020.01.040</ext-link></comment> <object-id pub-id-type="pmid">32142648</object-id></mixed-citation>
</ref>
</ref-list>
</back>
<sub-article article-type="aggregated-review-documents" id="pcbi.1011625.r001" specific-use="decision-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625.r001</article-id>
<title-group>
<article-title>Decision Letter 0</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Graham</surname>
<given-names>Lyle J.</given-names>
</name>
<role>Section Editor</role>
</contrib>
<contrib contrib-type="author">
<name name-style="western">
<surname>Engel</surname>
<given-names>Tatiana</given-names>
</name>
<role>Guest Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2023</copyright-year>
<copyright-holder>Graham, Engel</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pcbi.1011625" document-id-type="doi" document-type="article" id="rel-obj001" link-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>0</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">19 Jan 2023</named-content>
</p>
<p>Dear Mr Skaar,</p>
<p>Thank you very much for submitting your manuscript "Metamodelling of a two-population spiking neural network" for consideration at PLOS Computational Biology.</p>
<p>As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. In light of the reviews (below this email), we would like to invite the resubmission of a significantly-revised version that takes into account the reviewers' comments.</p>
<p>We cannot make any decision about publication until we have seen the revised manuscript and your response to the reviewers' comments. Your revised manuscript is also likely to be sent to reviewers for further evaluation.</p>
<p>When you are ready to resubmit, please upload the following:</p>
<p>[1] A letter containing a detailed list of your responses to the review comments and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.</p>
<p>[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).</p>
<p>Important additional instructions are given below your reviewer comments.</p>
<p>Please prepare and submit your revised manuscript within 60 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. Please note that revised manuscripts received after the 60-day due date may require evaluation and peer review similar to newly submitted manuscripts.</p>
<p>Thank you again for your submission. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.</p>
<p>Sincerely,</p>
<p>Tatiana Engel</p>
<p>Guest Editor</p>
<p>PLOS Computational Biology</p>
<p>Lyle Graham</p>
<p>Section Editor</p>
<p>PLOS Computational Biology</p>
<p>***********************</p>
<p>Reviewer's Responses to Questions</p>
<p><bold>Comments to the Authors:</bold></p>
<p><bold>Please note here if the review is uploaded as an attachment.</bold></p>
<p>Reviewer #1: Skaar et al. present a thorough application of state-of-the-art metamodeling techniques to a highly-relevant and well-studied neural circuit model in theoretical neuroscience: leaky-IF spiking E/I ("Brunel") model. They accurately point out, that metamodeling -- the practice of approximating f(x | theta) or p(x | theta) for expensive simulation-defined models and then leveraging those approximations for scientific/theoretical inquiry -- is underutilized in the field of computational neuroscience. They explain the computational efficiency benefits of Hierarchical Clustering-based Partial Least Squares over alternative metamodeling approximation methods like deep gaussian process regression (GPR) and compare their application to the metamodeling of power spectral density of the Brunel model given 10 parameters (synaptic strengths, voltage, capacitance and time constant parameters of the model). Finally, they show that when executing simulation-based inference with their metamodels (as likelihoods) using MCMC, the spiking activities and LFPs result in different manifolds of degeneracy in the neural circuit model. I commend the authors on the degree of detail and clarity in the manuscript.</p>
<p>The work presented is a rigorous application of metamodeling techniques to the Brunel model, and advocates for a well-reasoned position that metamodeling techniques offer a practical, methodologically sound alternative to popular approaches in simulation-based inference. However, the findings presented do not reach the publication standard at PLOS Comp Bio.</p>
<p>- a.) Without showing any methodological comparison to prominent techniques like those referenced in the paper for simulation-based inference (SBI) (ABC sampling, SNPE, SNLE, etc), the work offers no evidence of a computational benefit from using either metamodeling (either GPR or HCPLS). We're also not given a sense of how the method scales with parametric dimensionality (important for neuroscience). After all, the ultimate reason for approximating a high-fidelity simulation-based neural circuit model would be to use that approximation for inversion/parameter inference. Otherwise, the contribution is that simulation cost is reduced by coarsening the fidelity of the neural circuit model simulation, which is not stated as a fundamental aim of this manuscript.</p>
<p>- b.) If this manuscript lacks methodological comparisons to SBI, then one would expect the methodology presented to at least generate some foundational insights about the neural circuit model being analyzed. The insights generated regarding the Brunel model are minimal, and only elaborated upon in descriptive terms. It is certainly interesting that the two types of conditioning yield different manifolds of degeneracy, but what does that mean about the model -- or about the physiological neurons they model. Can you make a novel prediction from this methodologically-generated insight and confirm it with model simulations?</p>
<p>I would be happy to re-read a manuscript, which has been re-written around a firm conclusion regarding lines a or b (or both).</p>
<p>Regarding line of work a.) a good place to start would be to insert the metamodel as an approximation of the simulation process in ABC and MCMC, and demonstrate the speed/accuracy trade-off. In what regimes (e.g. parameter count, simulation senarios (dt, NE, NI) etc.) of SBI does metamodeling offer computationally efficient, high-fidelity model inversion. To push the envelope, you could insert the metamodel into the relevant places of SNLE/SNPE (as you allude to) and do a similar analysis.</p>
<p>Reviewer #2: In this work, Skaar and colleagues construct metamodels of the classic Brunel spiking neural network to do fast emulation (i.e., simulate with the metamodel instead of the real simulator) and parameter posterior inference. They perform several thousand simulations of the Brunel network of excitatory and inhibitory populations with 10 free parameters drawn from a Latin hypercube prior, compute the power spectrum of the population rate, as well as PSD of the LFP, which is simulated in a separate hybrid-scheme model using just the spike times. The set of 4000 pairs of {network parameter, PSD} datapoints are used as training data for two types of metamodels, GP regression and hierarchical cluster-based PLS regression, to learn a fast emulator of the forward simulation. They compare the accuracy of the metamodel output against a held-out test set of simulations and find good performance for both, while GPR outperforms HCPLSR. With GPR, the authors then do model inversion to infer network parameters given an observed PSD (again, simulation from a held-out test set). They find reasonable parameter recovery performance and discover parameter correlations in the posterior distribution, while the posterior predictive simulations match that of the original ground-truth simulations. They derive insights about parameters of the Brunel network based on the inference results, such as the scaling between synaptic strength and time constant, which was dependent on which representation of the data (i.e., PSD of the pop rate vs. LFP) one uses as the observation, which in general affected the inferred posterior distribution, e.g., variance of the 1D marginal distribution for some parameters.</p>
<p>In general, I personally find this work very interesting and valuable, and is a great addition to the thread of works the group produces towards modeling / inverting network parameters from observed data. As far as I can tell, the work is rigorously done, though some clarifications can be made regarding hyperparam choices, and also the high-level motivation for model choices (i.e., HCPLSR, expanded below). One of the main concern I have is regarding using the hybrid scheme for LFP simulation with fixed parameters. In addition, the manuscript is a bit dense at points, and some visual presentation can be improved. I have a lot of comments below, which are only loosely ranked from high- to low-level comments (my apologies), but they are all meant to improve the clarity of the presentation or strengthen the arguments made in the paper.</p>
<p>- just to clarify, for the LFP simulations, are the hybrid / biophysical network parameters fixed for all simulations, i.e., do all LFP simulations use, for example, a membrane time constant of 20 ms, as implied in Table 4? If so, isn’t this problematic that the spiking network simulations are run with variable membrane time constants drawn from the prior, while the LFP is computed with a different and fixed time constant for all simulations? This may also explain why some parameters are more constrained when conditioned on the LFP spectra. Given that the spiking simulations are run anyway, wouldn’t it be straightforward to just compute the LFPs based on another approximation scheme (e.g., Mazzoni et al. 2015), which would presumably be a much better approximation of the LFP for each individual network. I think this is an important point to discuss, and possibly warrants further experiments, at least for a subset of the simulations, to show that the “true” LFP computed from currents in the spiking network (which have variable parameter values) match the LFP from the hybrid scheme (which has fixed parameter values), or that this does not influence posterior inference. Related to this, are PSDs from all 6 LFP channels used for inference? If not, the computational overhead of computing 1 LFP should be minimal?</p>
<p>- one thing that was not clear to me at all is the motivation behind using HCPLSR in this work. It is limited in expressivity while introducing computational overhead in the clustering step (as opposed to just doing nonlinear regression), does not allow model inversion, which is a main feature of the GP metamodel, and in general performs worse than the GP (though I suppose the latter point was only discovered by actually running the experiment). Given the group’s previous work (i.e., Skaar, Stasik et al 2020), I would have expected this comparison to be at least against a feedforward CNN model (or some kind of nonlinear regression model in general), which is probably equally fast for emulation time on modern computing hardware, but without loss of expressivity. In general, I think the results regarding HCPLSR is good to know, but does not at all add to the overall story, and can probably be moved to supplemental material given that the methods section is already quite technically challenging (which would also save Fig 2 to highlight a more important result). Alternatively, the authors can provide more motivation for trying HCPLSR (instead of a variety of other equivalent or superior regression techniques) , especially since they do not take advantage of the low dimensional representation found in PLS, as it would be interesting to see if the loadings for different clusters would correspond to qualitatively different regimes of network dynamics, etc.</p>
<p>- related to the previous point, it was emphasized in several places that the low dimensional representation in GP is a feature that affords more interpretability, but this was never taken advantage of in downstream analyses. I’m not saying this has to be added to this paper (though it would be very interesting to see!), but without actually looking into the GP latents, it undermines the key motivation for using it, which opens up the question of why not use a more expressive model. Similarly, given the previous results in Skaar, Stasik et al, it would have been natural to use a probabilistic model like mixture density network instead of a CNN to directly learn the posterior over parameters, with the advantage of bypassing the MCMC step as well as eliminating the utility of the GP’s smoothness. This is a rather general comment that can be addressed in writing of the introduction or discussion, or by performing additional analyses (of GP latents) or testing additional models (a more flexible replacement for the GP, or MDN for direct posterior estimation, etc.), and I leave it to the authors to address it in how they see fit.</p>
<p>- L121-131 implies that the prior bounds were restricted to eliminate parameter regions that result in the SR state, but wouldn’t that also exclude parameters that could generate AI dynamics? In the original Brunel phase diagram, this would correspond to the fact that the phase transition between SR and AI state has a slant in the 2D parameter space, while restricting the prior is akin to drawing a proper rectangle around only a part of the AI regime, and I would imagine this effect (i.e., boundaries not parallel to the coordinate axes in the parameter space) would only be exacerbated in the 10-D model here. A discussion of this would be warranted, esp since the authors attempt to capture a wide range of the model’s parameter space with the metamodel. A simple alternative would be to simulate from a broader prior, and post hoc throw out simulations in unwanted regimes (which the authors already do anyway).</p>
<p>- regarding the references to SBI methods (in the intro and discussion, L633-640), and in particular, SNPE/SNLE: while it’s true that the sequential version of these algorithms target posteriors for a specific observation, when run just for a single round, they have the exact same properties as the metamodels proposed here in that they are accurate over the full domain of the mechanistic model. In fact, SNLE run for a single round is exactly analogous to the GPR approach here, where the learned emulator/metamodel can be sampled from to produce fast simulations, but just replacing the gaussian process with another conditional density estimator, often of the neural network variety (e.g., normalizing flow). This fact does not diminish the novelty or how interesting the current work is, but is a point that should be clarified (and perhaps practical differences between estimators can then be further discussed, e.g., computational cost of GP vs. flows). Also, on L688: the metamodels plugged into SBI or ABC still produces a posterior that has to be MCMC sampled (as the authors do here), so I’m not sure what this statement is meant to convey?</p>
<p>- as a reader, the methodological description of GPR was extremely dense to read, while the technical details (and the current Figure 1) don’t contribute to the overall goal of the paper, especially since there’s no comparison of performance as a function of GP hyperparameters. I think most of this can be moved to supplemental materials, to make it easier for a non-technical reader to digest, though this is just my opinion. Similarly, I think the current figure 3 serves as a much better figure 1, as it provides an overview of the study, and should be highlighted as early as possible, instead of technical details about prior samples for the GP or schematic for PLSR. On that note, given the observation that the metamodel output PSD differ in smoothness from the actual simulations, maybe it’s worth exploring different length scales of the GP, as well as discussing the specific choice of hyperparameters (e.g., 10 and 14 GPs in layer 1 and 2, why?)</p>
<p>- some discussions of applying this approach to real neural data (and the limitations) may be of interest to a broader neuroscience audience</p>
<p>- does the latin hypercube prior outperform a simple uniform prior? Is there a practical or theoretical difference? This is just for my own curiosity.</p>
<p>- I think the first paragraph of section 3 (L327-334) is a fantastic summary of the work, and (some version of this) can be restated earlier in the paper as it really helped me as a reader to orient myself in the paper.</p>
<p>- are raw PSDs or log PSDs used as input for all the regression models (and at evaluation)? I’d imagine using the log PSD would help for the regression tasks given the 1/f.</p>
<p>- Fig 5D (and others): when evaluating metamodel output accuracy, I think it would be useful to scale the error to the range of the simulations from the prior samples (i.e., training set), or was this already done?</p>
<p>- I think some figures can be labeled more informatively:</p>
<p>- Fig 5A&amp;B can have subtitles, pop rate and LFP PSD, respectively, same for the two rows of 5D; the lines/shaded area in 5A&amp;B are in general very difficult to see; 5C x-axis can be labeled test set index, and perhaps could be plotted as a cumulative distribution (so the transpose of the current graph) to make the same point but with a more standard plot;</p>
<p>- Fig 8A can have subtitles denoting spiking and LFP (and the two columns in Fig 8 in general), and red dot/line can be labeled as ground-truth in the figure; it’s a bit confusing that Fig8B breaks the 2-column pattern (but not sure if much can be done about it); lines in 8C are very difficult to see, and I think the black lines entirely block the shaded orange? Is it an issue that the two columns of 8B look almost identical? Is there some straightforward explanation for this? Typo in caption for 8D (“orange dashed line in C”)</p>
<p>- I’m having a bit of a hard time understanding Fig 8D: is this the max distance of the metamodel mean from the posterior predictive simulations? Shouldn’t this be computed as a distance of the ground-truth simulation (i.e. the observation used for conditioning) from the posterior predictive simulations?</p>
<p>- L460: full 10D pairplot would be nice to see in supplemental</p>
<p>- L515-517: I think it would be clearer to use “conditioned on”, i.e., “…the coefficients for the samples from the posterior distribution conditioned on the population spiking activity,….and coefficients conditioned on the LFP”</p>
<p>Richard Gao, PhD</p>
<p>University of Tuebingen</p>
<p>Reviewer #3: The authors fit two statistical models ("metamodels"), to the Brunel network of excitatory and inhibitory LIF neurons. Some of the model parameters are treated as unknown and these unknown parameters are the input to the metamodel. The output of the metamodel are estimations of the power spectra of the population activities or of the LFP's. The metamodels are trained using supervised learning for many parameter sets from some domain of parameter space. The trained metamodels are tested on randomly sampled parameter combinations that lead to mostly asynchronous irregular spiking activity (parameters corresponding to (strong) synchronous activity are not considered both in the training and testing phase). The authors find an excellent performance of the metamodels both for the forward prediction of power spectra and for statistical inference of parameters given power spectrum estimates (inverse modeling). The parameter inference yields some interesting insights regarding the type of parameters and parameter combinations that can be well inferred, and the benefits of the inference on LFP data vs. population activity data (e.g. LFP data are advantageous for inference of synaptic connectivity). I found the paper important and interesting: the metamodel is a highly efficient model for the forward prediction of power spectra of LFPs or population activities given biophysically interpretable parameters, and inversely, the metamodel provides estimations of unknown biophysical parameters given power spectrum data. Both aspects are of high importance in neuroscience. The metamodelling framework is interesting because it combines the advantages of statistical models (efficiency, parameter inference) with the advantages of mechanistic network models (interpretability). The paper is scientifically sound and largely well written. The metamodel applies to state-of-the-art neural network models and LFP models in computational neuroscience and I expect the method to be highly useful at the interface of large-scale cortical recordings and network models of the corresponding circuits. The description of the method should be improved. Overall, I recommend publication in PLoS Computational Biology after the minor issues given below have been addressed.</p>
<p>Minor issues</p>
<p>============</p>
<p>1) The introduction of the concept of metamodels is rather abstract/general and would benefit from a more concrete description (alongside the general concept). Figure 3 is very nice and already quite helpful in this respect, but only comes in Sec.3. For example, it should be made clear already in the introduction that, in the present paper, the input of the metamodel are some parameters of the network model and the output of the metamodel is some statistics (e.g. power spectra or distribution over power spectra) of some functions of network variables (e.g. LFP or population activities). It could be stressed that the metamodel does not generate realizations of population activities or LFPs, in fact there is no "time" in the metamodel, in contrast to the network model and other statistical models.</p>
<p>2) Similar to point 1, I found the Methods part on Gaussian process regression rather abstract and incomprehensible to non-machine-learning experts. In Sec. 2.3, the quantities X, x and bold x seem to relate to the input, whereas the bold x has been defined as the output in the introduction (As I understand the bold x would be an estimate of the power spectra). Please, make sure that unique notations are used and all quantities are properly defined (x (not bold) does not seem to be defined, X should be defined more precisely, e.g. what is the dimension of the matrix, how is it constructed from n inputs (bold x?) of dimension d?). What is d in this paper? What is the "underlying function f(x)"? In line 200, if bold x denotes a vector (let's call it \\vec{x}), (\\vec{x}-\\vec{x}')^2 is not clearly defined. Do you mean the norm squared (dot product)?</p>
<p>3) What exactly is the output of the GPR? If it is the likelihood p(\\vec{x}|\\theta), how is it represented or computed (where is the equation for it)?</p>
<p>4) In line 269, the unnormalized posterior distribution is given in terms of the likelihood, which has been computed by the GPR. Why is it necessary to sample from this distribution? Isn't the unnormalized posterior distribution sufficient (e.g. to get the mean and standard deviation in the plots of this paper)?</p>
<p>5) Fig.5A,B: The 10 samples of the GPR (orange lines) are barely visible. On the other hand, I find it is not necessary and rather confusing to plot them. The output of the GPR is the distribution of the power spectrum, and hence it is sufficient to show the mean and the orange shaded area (two standard deviations). Therefore, I suggest to omit the orange lines, which will also lead to a better vivibility of the black lines. Furthermore, the authors write in line 385: "the smoothness of the power spectra is underestimated for lower frequencies, as can be observed by comparing the individual orange and black lines". I guess the mean power spectrum, which should be a much smoother function, is more relevant than individual samples because the mean power spectrum will provide an estimate of a perfectly averaged power spectrum in the network model (corresponding the averaging over infinitely many Hann windows in the Welch periodogram of an infinitely long simulation).</p>
<p>6) For me the "power spectrum" is synonymous with power spectral density (PSD), which is defined by dividing by the window length T: PSD(f)=&lt;[Psi]^*(f)[Psi](f)&gt;/T (otherwise the power spectrum would scale with T). Why is the power spectrum defined without division by T? The scipy.signal.welch also provides the PSD that is rescaled by the window size. The PSD has also the advantage that the firing rate of neurons can be easily read-off from the high-frequency limit of the PSD of population activities (apart from a factor N). The PSD is not dimensionless, e.g. the PSD of population rates has units of 1/s, whereas without division by T it is dimensionless.</p>
<p>7) What is the unit of the LFP in this paper? The units of the corresponding power spectra seem to be missing in the plots unless the LFP has units of 1/time and hence its Fourier transform is unitless.</p>
<p>8) It is unclear how the method works outside the asynchronous irregular regime and where it fails. Could the method be used also for the synchronous regime?</p>
<p>9) Are the rates nu in Fig.4 normalized by N? According to the definition of nu they are not, but in this case the single neuron rate would be nu/N which would result in extremely small rates. Furthermore, what exactly is nu here, is it a weighted sum of nu_E and nu_I? If nu is normalized then simply nu=nu_E=nu_I, but this is not the case if nu is not normalized.</p>
<p>10) There seems to be a numerical artifact in power spectrum at the highest frequency (strange decrease). This decrease should not be there because the PSD of the population activities saturates to a non-zero value (the saturation is already visible in the plots).</p>
<p>11) In the asynchronous irregular regime, linear-response theory (especially the theory based on Lindner Phys Rev E 72, 061919, 2005) usually provides highly accurate analytical approximations of the PSDs (see e.g. Trousdale et al. PLoS Comput Biol. 2012, Deger et al. Phys. Rev E 2014, and the simpler but less accurate theories of Brunel J. Comput Neurosci. 2000 and Bos, Helias et al. PLoS Comput Biol. 2016). These analytical formulas should provide an efficient alternative to metamodels, which should be discussed in the paper.</p>
<p>Typos</p>
<p>=====</p>
<p>-caption Fig.5: set, . -&gt; set.</p>
<p>-caption Fig.5: errors are shown in standard deviations</p>
<p>-Table 1: shaped-shaped -&gt; alpha-shaped?</p>
<p>-line 433: an an</p>
<p>-line 451: membrane potential tau_m -&gt; membrane time constant tau_m</p>
<p>-caption Fig.8, last sentence: there should be two times a reference to panel C not B</p>
<p>-caption Fig.5: errors are shown in standard deviations -&gt; maybe a bit better: errors are shown in units of the standard deviations</p>
<p>**********</p>
<p><bold>Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?</bold></p>
<p>The <ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/ploscompbiol/s/materials-and-software-sharing" xlink:type="simple">PLOS Data policy</ext-link> requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.</p>
<p>Reviewer #1: Yes</p>
<p>Reviewer #2: Yes</p>
<p>Reviewer #3: Yes</p>
<p>**********</p>
<p>PLOS authors have the option to publish the peer review history of their article (<ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/ploscompbiol/s/editorial-and-peer-review-process#loc-peer-review-history" xlink:type="simple">what does this mean?</ext-link>). If published, this will include your full peer review and any attached files.</p>
<p>If you choose “no”, your identity will remain anonymous but your review may still be made public.</p>
<p><bold>Do you want your identity to be public for this peer review?</bold> For information about this choice, including consent withdrawal, please see our <ext-link ext-link-type="uri" xlink:href="https://www.plos.org/privacy-policy" xlink:type="simple">Privacy Policy</ext-link>.</p>
<p>Reviewer #1: <bold>Yes: </bold>Sean Bittner</p>
<p>Reviewer #2: <bold>Yes: </bold>Richard Gao</p>
<p>Reviewer #3: No</p>
<p><underline>Figure Files:</underline></p>
<p>While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, <underline><ext-link ext-link-type="uri" xlink:href="https://pacev2.apexcovantage.com/" xlink:type="simple">https://pacev2.apexcovantage.com</ext-link></underline>. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at <underline><email xlink:type="simple">figures@plos.org</email></underline>.</p>
<p><underline>Data Requirements:</underline></p>
<p>Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: <ext-link ext-link-type="uri" xlink:href="http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5" xlink:type="simple">http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5</ext-link>.</p>
<p><underline>Reproducibility:</underline></p>
<p>To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at <ext-link ext-link-type="uri" xlink:href="https://plos.org/protocols?utm_medium=editorial-email&amp;utm_source=authorletters&amp;utm_campaign=protocols" xlink:type="simple">https://plos.org/protocols?utm_medium=editorial-email&amp;utm_source=authorletters&amp;utm_campaign=protocols</ext-link></p>
</body>
</sub-article>
<sub-article article-type="author-comment" id="pcbi.1011625.r002">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625.r002</article-id>
<title-group>
<article-title>Author response to Decision Letter 0</article-title>
</title-group>
<related-object document-id="10.1371/journal.pcbi.1011625" document-id-type="doi" document-type="peer-reviewed-article" id="rel-obj002" link-type="rebutted-decision-letter" object-id="10.1371/journal.pcbi.1011625.r001" object-id-type="doi" object-type="decision-letter"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>1</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="author-response-date">12 Jun 2023</named-content>
</p>
<supplementary-material id="pcbi.1011625.s005" mimetype="application/vnd.oasis.opendocument.text" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.s005" xlink:type="simple">
<label>Attachment</label>
<caption>
<p>Submitted filename: <named-content content-type="submitted-filename">PLOS_metamodel_paper_response.odt</named-content></p>
</caption>
</supplementary-material>
</body>
</sub-article>
<sub-article article-type="aggregated-review-documents" id="pcbi.1011625.r003" specific-use="decision-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625.r003</article-id>
<title-group>
<article-title>Decision Letter 1</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Graham</surname>
<given-names>Lyle J.</given-names>
</name>
<role>Section Editor</role>
</contrib>
<contrib contrib-type="author">
<name name-style="western">
<surname>Engel</surname>
<given-names>Tatiana</given-names>
</name>
<role>Guest Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2023</copyright-year>
<copyright-holder>Graham, Engel</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pcbi.1011625" document-id-type="doi" document-type="article" id="rel-obj003" link-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>1</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">27 Aug 2023</named-content>
</p>
<p>Dear Mr Skaar,</p>
<p>Thank you very much for submitting your manuscript "Metamodelling of a two-population spiking neural network" for consideration at PLOS Computational Biology. As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. The reviewers appreciated the attention to an important topic. Based on the reviews, we are likely to accept this manuscript for publication, providing that you address the concerns raised by the reviewer in the revised manuscript. In particular, state clearly what advances your work provides and what is the significance of your study for the computational neuroscience field.</p>
<p>Please prepare and submit your revised manuscript within 30 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email.</p>
<p>When you are ready to resubmit, please upload the following:</p>
<p>[1] A letter containing a detailed list of your responses to all review comments, and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out</p>
<p>[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).</p>
<p>Important additional instructions are given below your reviewer comments.</p>
<p>Thank you again for your submission to our journal. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.</p>
<p>Sincerely,</p>
<p>Tatiana Engel</p>
<p>Guest Editor</p>
<p>PLOS Computational Biology</p>
<p>Lyle Graham</p>
<p>Section Editor</p>
<p>PLOS Computational Biology</p>
<p>***********************</p>
<p>A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact <email xlink:type="simple">ploscompbiol@plos.org</email> immediately:</p>
<p>Reviewer's Responses to Questions</p>
<p><bold>Comments to the Authors:</bold></p>
<p><bold>Please note here if the review is uploaded as an attachment.</bold></p>
<p>Reviewer #1: Recommendation</p>
<p>The authors have made diligent efforts to account for feedback in the previous round, which they should be commended for. This manuscript now very clearly lays out the role of metamodeling with respect to state-of-the-art techniques used in computational neuroscience for SBI - namely the normalizing flows (MAFs) used to estimate likelihoods (forward model) for inference as in SNLE. SNPE is primarily used in favor of SNLE, so I find this paper’s focus on the metamodel (estimation of the likelihood/forward model) to be a refreshing re-examination of the utility of such approaches for models with expensive simulations with intricate emergent phenomena like the Brunel model. However, I struggle to identify an aspect of the advancements/insights laid out in this paper that meet the publication criteria of PLoS Computational Biology. I recommend rejecting this paper for the reasons elaborated below.</p>
<p>Novelty/innovation/insight</p>
<p>In the first review, I stated my opinion that this manuscript could meet the publication criteria for this journal along the lines of innovation/insight if they did either one of two things: a.) demonstrate benefits of metamodeling with respect to SoTA approaches from of SBI or b.) generate foundational insights about the Brunel model using these techniques. Showing that a metamodel can be used to approximate the Brunel model to a reasonable degree (which they have definitely done) is not enough. While they have made considerable progress towards each of these aims, they don’t present enough evidence of a.) methodological advancement or enough analyses to yield b.) foundational insight generated with this methodology.</p>
<p>a.) methodological advancement</p>
<p>Since the original manuscript had a focus on using metamodels towards parameter inference, the authors followed recommendations from Reviewers 1 and 2 to explore the methodological tradeoffs between metamodeling and methods in SBI. Since metamodeling (estimation of the likelihood) is a process within SNLE, the authors accurately point out that the process undertaken in the manuscript is like running SNLE for 1 round. This underscores the fact that metamodeling isn’t novel in computational neuroscience, however it is certainly underutilized, and they will be making a case for its use in this paper.</p>
<p>The methodological comparisons in the latest manuscript focus on the approximating model of the Brunel model - the type of metamodel. Indeed they show some evidence that deep gaussian processes are a better approximation than MAFs. for the Brunel model, and also that HCPLSR lacks the expressivity necessary for this problem (I appreciate the inclusion of this in the manuscript knowing how great a focus this was in the original version). Even if this claim that DGPR was a more effective method of metamodeling than MAF for the Brunel model was firmly established (which I'm not entirely sure it is, see section Rigor/completeness), this relative advantage of DGPR would need to be demonstrated for at least two neural circuit models (not just one) to establish that it is in fact a better practice for the field moving forward – thus constituting an advancement worthy of publication.</p>
<p>After this first round of revision, I would have expected the authors to take a more focused approach on simulation count/computational efficiency – what is the trade-off space (simulation count and/or computational cost vs inference/estimation quality) of HCPLSR or DGPR metamodels vs established methods in SBI.</p>
<p>b.) foundational insight</p>
<p>The authors certainly made a more concerted effort to expand on the meaning of the posteriors inferred via the metamodel, however I don’t believe any concrete insights have been revealed in this manuscript. There are certainly paragraphs in Section 3.4 and Discussion along these lines, but they don’t rise beyond descriptions of the visualized/quantified correlations in the posterior, or 1D marginal variances, with some prose about how these parameters relate in an information theoretic context.</p>
<p>To meet publication criteria, we'd want to gain some interpretable insight from inferred posteriors - stipulate a hypothesis(es) from this insight - and then confirm them in simulation. That is not done here.</p>
<p>The fact that conditioning on LFPs vs spiking activity yields less posterior variance is nice to see, but I’m not sure this is surprising or has generated any new understanding of the Brunel model and its function.</p>
<p>Rigor/completeness</p>
<p>Some of this manuscript is well written and mature, but I found several parts unclear.</p>
<p>- Figure 3 - No mention or explanation is given for why MAF is missing from the right side of the figure.</p>
<p>- How many parameters are used in ideal DGPR model vs ideal MAF model? Can this explain the overfitting mentioned in the main text?</p>
<p>- Figure 4 - train and test labels are switched (otherwise something is very wrong).</p>
<p>- Are these training errors evaluated on the progressively increasing training set, or the complete dataset irrespective of the amount used in training?</p>
<p>- How many simulations were used to build the metamodels used in the following analyses? 1000 because its the elbow you designated?</p>
<p>- What’s the relative computational cost (training time per epoch etc.) of fitting these metamodels to simulation cost? I don’t have an idea of what the true bottleneck in this parameter inference problem is given the methods you’re exploring.</p>
<p>- Figure 5 - Which metamodel was used in this figure? I assume DGPR, but it’s not explicitly stated.</p>
<p>- Figure 5B - no explanation of what x and o are in this figure.</p>
<p>- Figure 5D should have x-axis labels indicating the difference of left vs right.</p>
<p>- Figure 6</p>
<p>- I agree that Figure 6D using the mean (or median) error of the posterior predictive wrt to the conditioning simulation is an appropriate evaluation method for the inference techniques shown here, but I disagree with the interpretation of Figure 6B, and the statement L466-469 about the posterior predictive variance.</p>
<p>- The posterior predictive distribution will reflect the uncertainty of the approximate posterior. A method that underestimates the posterior variance, will have lower posterior predictive variance, and that certainly doesn’t make it a better method than one accurately capturing the posterior variance.</p>
<p>Reviewer #2: Thanks to the authors for constructively engaging with my comments. The new experiments, especially the comparison with MAF, are quite interesting and now an additional contribution the paper makes. I'm happy with the manuscript as it is and very excited to see it in publication.</p>
<p>Reviewer #3: The authors have satisfactorily addressed all my comments.</p>
<p>**********</p>
<p><bold>Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?</bold></p>
<p>The <ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/ploscompbiol/s/materials-and-software-sharing" xlink:type="simple">PLOS Data policy</ext-link> requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.</p>
<p>Reviewer #1: Yes</p>
<p>Reviewer #2: Yes</p>
<p>Reviewer #3: None</p>
<p>**********</p>
<p>PLOS authors have the option to publish the peer review history of their article (<ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/ploscompbiol/s/editorial-and-peer-review-process#loc-peer-review-history" xlink:type="simple">what does this mean?</ext-link>). If published, this will include your full peer review and any attached files.</p>
<p>If you choose “no”, your identity will remain anonymous but your review may still be made public.</p>
<p><bold>Do you want your identity to be public for this peer review?</bold> For information about this choice, including consent withdrawal, please see our <ext-link ext-link-type="uri" xlink:href="https://www.plos.org/privacy-policy" xlink:type="simple">Privacy Policy</ext-link>.</p>
<p>Reviewer #1: <bold>Yes: </bold>Sean Bittner</p>
<p>Reviewer #2: <bold>Yes: </bold>Richard Gao</p>
<p>Reviewer #3: <bold>Yes: </bold>Tilo Schwalger</p>
<p>Figure Files:</p>
<p>While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, <ext-link ext-link-type="uri" xlink:href="https://pacev2.apexcovantage.com" xlink:type="simple">https://pacev2.apexcovantage.com</ext-link>. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at <email xlink:type="simple">figures@plos.org</email>.</p>
<p>Data Requirements:</p>
<p>Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: <ext-link ext-link-type="uri" xlink:href="http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5" xlink:type="simple">http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5</ext-link>.</p>
<p>Reproducibility:</p>
<p>To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. Additionally, PLOS ONE offers an option to publish peer-reviewed clinical study protocols. Read more information on sharing protocols at <ext-link ext-link-type="uri" xlink:href="https://plos.org/protocols?utm_medium=editorial-email&amp;utm_source=authorletters&amp;utm_campaign=protocols" xlink:type="simple">https://plos.org/protocols?utm_medium=editorial-email&amp;utm_source=authorletters&amp;utm_campaign=protocols</ext-link></p>
<p>References:</p>
<p>Review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript.</p>
<p><italic>If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.</italic></p>
</body>
</sub-article>
<sub-article article-type="author-comment" id="pcbi.1011625.r004">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625.r004</article-id>
<title-group>
<article-title>Author response to Decision Letter 1</article-title>
</title-group>
<related-object document-id="10.1371/journal.pcbi.1011625" document-id-type="doi" document-type="peer-reviewed-article" id="rel-obj004" link-type="rebutted-decision-letter" object-id="10.1371/journal.pcbi.1011625.r003" object-id-type="doi" object-type="decision-letter"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>2</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="author-response-date">4 Oct 2023</named-content>
</p>
<supplementary-material id="pcbi.1011625.s006" mimetype="application/pdf" position="float" xlink:href="info:doi/10.1371/journal.pcbi.1011625.s006" xlink:type="simple">
<label>Attachment</label>
<caption>
<p>Submitted filename: <named-content content-type="submitted-filename">metamodel_response2.pdf</named-content></p>
</caption>
</supplementary-material>
</body>
</sub-article>
<sub-article article-type="aggregated-review-documents" id="pcbi.1011625.r005" specific-use="decision-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625.r005</article-id>
<title-group>
<article-title>Decision Letter 2</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Graham</surname>
<given-names>Lyle J.</given-names>
</name>
<role>Section Editor</role>
</contrib>
<contrib contrib-type="author">
<name name-style="western">
<surname>Engel</surname>
<given-names>Tatiana</given-names>
</name>
<role>Guest Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2023</copyright-year>
<copyright-holder>Graham, Engel</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pcbi.1011625" document-id-type="doi" document-type="article" id="rel-obj005" link-type="peer-reviewed-article"/>
<custom-meta-group>
<custom-meta>
<meta-name>Submission Version</meta-name>
<meta-value>2</meta-value>
</custom-meta>
</custom-meta-group>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">23 Oct 2023</named-content>
</p>
<p>Dear Mr Skaar,</p>
<p>We are pleased to inform you that your manuscript 'Metamodelling of a two-population spiking neural network' has been provisionally accepted for publication in PLOS Computational Biology.</p>
<p>Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.</p>
<p>Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.</p>
<p>IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.</p>
<p>Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.</p>
<p>Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. </p>
<p>Best regards,</p>
<p>Tatiana Engel</p>
<p>Guest Editor</p>
<p>PLOS Computational Biology</p>
<p>Lyle Graham</p>
<p>Section Editor</p>
<p>PLOS Computational Biology</p>
<p>***********************************************************</p>
<p>Reviewer's Responses to Questions</p>
<p><bold>Comments to the Authors:</bold></p>
<p><bold>Please note here if the review is uploaded as an attachment.</bold></p>
<p>Reviewer #1: My concerns from the previous round of review have been addressed, and I'm happy to endorse the acceptance of this manuscript. This is a great paper that will add an important complementary perspective to the emerging field of methodological techniques for handling expensive simulation-based models in theoretical neuroscience.</p>
<p>**********</p>
<p><bold>Have the authors made all data and (if applicable) computational code underlying the findings in their manuscript fully available?</bold></p>
<p>The <ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/ploscompbiol/s/materials-and-software-sharing" xlink:type="simple">PLOS Data policy</ext-link> requires authors to make all data and code underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data and code should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data or code —e.g. participant privacy or use of data from a third party—those must be specified.</p>
<p>Reviewer #1: None</p>
<p>**********</p>
<p>PLOS authors have the option to publish the peer review history of their article (<ext-link ext-link-type="uri" xlink:href="https://journals.plos.org/ploscompbiol/s/editorial-and-peer-review-process#loc-peer-review-history" xlink:type="simple">what does this mean?</ext-link>). If published, this will include your full peer review and any attached files.</p>
<p>If you choose “no”, your identity will remain anonymous but your review may still be made public.</p>
<p><bold>Do you want your identity to be public for this peer review?</bold> For information about this choice, including consent withdrawal, please see our <ext-link ext-link-type="uri" xlink:href="https://www.plos.org/privacy-policy" xlink:type="simple">Privacy Policy</ext-link>.</p>
<p>Reviewer #1: <bold>Yes: </bold>Sean Bittner</p>
</body>
</sub-article>
<sub-article article-type="editor-report" id="pcbi.1011625.r006" specific-use="acceptance-letter">
<front-stub>
<article-id pub-id-type="doi">10.1371/journal.pcbi.1011625.r006</article-id>
<title-group>
<article-title>Acceptance letter</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western">
<surname>Graham</surname>
<given-names>Lyle J.</given-names>
</name>
<role>Section Editor</role>
</contrib>
<contrib contrib-type="author">
<name name-style="western">
<surname>Engel</surname>
<given-names>Tatiana</given-names>
</name>
<role>Guest Editor</role>
</contrib>
</contrib-group>
<permissions>
<copyright-year>2023</copyright-year>
<copyright-holder>Graham, Engel</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/">
<license-p>This is an open access article distributed under the terms of the <ext-link ext-link-type="uri" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">Creative Commons Attribution License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
</license>
</permissions>
<related-object document-id="10.1371/journal.pcbi.1011625" document-id-type="doi" document-type="article" id="rel-obj006" link-type="peer-reviewed-article"/>
</front-stub>
<body>
<p>
<named-content content-type="letter-date">3 Nov 2023</named-content>
</p>
<p>PCOMPBIOL-D-22-01359R2 </p>
<p>Metamodelling of a two-population spiking neural network</p>
<p>Dear Dr Skaar,</p>
<p>I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.</p>
<p>The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript. </p>
<p>Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.</p>
<p>Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work! </p>
<p>With kind regards,</p>
<p>Zsofi Zombor</p>
<p>PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom <email xlink:type="simple">ploscompbiol@plos.org</email> | Phone +44 (0) 1223-442824 | <ext-link ext-link-type="uri" xlink:href="http://ploscompbiol.org" xlink:type="simple">ploscompbiol.org</ext-link> | @PLOSCompBiol</p>
</body>
</sub-article>
</article>