<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD Journal Publishing DTD v2.3 20070202//EN" "journalpublishing.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" article-type="research-article">
<front>
<journal-meta>
<journal-id journal-id-type="publisher-id">Front. Neurosci.</journal-id>
<journal-title>Frontiers in Neuroscience</journal-title>
<abbrev-journal-title abbrev-type="pubmed">Front. Neurosci.</abbrev-journal-title>
<issn pub-type="epub">1662-453X</issn>
<publisher>
<publisher-name>Frontiers Media S.A.</publisher-name>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="doi">10.3389/fnins.2017.00269</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Neuroscience</subject>
<subj-group>
<subject>Original Research</subject>
</subj-group>
</subj-group>
</article-categories>
<title-group>
<article-title>State-Dependent Decoding Algorithms Improve the Performance of a Bidirectional BMI in Anesthetized Rats</article-title>
</title-group>
<contrib-group>
<contrib contrib-type="author" corresp="yes">
<name><surname>De Feo</surname> <given-names>Vito</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="author-notes" rid="fn001"><sup>&#x0002A;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/320301/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Boi</surname> <given-names>Fabio</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/357151/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Safaai</surname> <given-names>Houman</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="aff" rid="aff3"><sup>3</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/306351/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Onken</surname> <given-names>Arno</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/419953/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Panzeri</surname> <given-names>Stefano</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="author-notes" rid="fn003"><sup>&#x02020;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/534/overview"/>
</contrib>
<contrib contrib-type="author">
<name><surname>Vato</surname> <given-names>Alessandro</given-names></name>
<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
<xref ref-type="author-notes" rid="fn003"><sup>&#x02020;</sup></xref>
<uri xlink:href="http://loop.frontiersin.org/people/7551/overview"/>
</contrib>
</contrib-group>
<aff id="aff1"><sup>1</sup><institution>Neural Computation Laboratory, Istituto Italiano di Tecnologia</institution> <country>Rovereto, Italy</country></aff>
<aff id="aff2"><sup>2</sup><institution>Nets3 Laboratory, Department of Neuroscience and Brain Technologies, Istituto Italiano di Tecnologia</institution> <country>Genova, Italy</country></aff>
<aff id="aff3"><sup>3</sup><institution>Department of Neurobiology, Harvard Medical School</institution> <country>Boston, MA, United States</country></aff>
<author-notes>
<fn fn-type="edited-by"><p>Edited by: Michele Giugliano, University of Antwerp, Belgium</p></fn>
<fn fn-type="edited-by"><p>Reviewed by: Kazutaka Takahashi, University of Chicago, United States; Peter Brunner, Albany Medical College, United States</p></fn>
<fn fn-type="corresp" id="fn001"><p>&#x0002A;Correspondence: Vito De Feo <email>vito.defeo&#x00040;iit.it</email></p></fn>
<fn fn-type="other" id="fn002"><p>This article was submitted to Neural Technology, a section of the journal Frontiers in Neuroscience</p></fn>
<fn fn-type="other" id="fn003"><p>&#x02020;These authors have contributed equally to this work.</p></fn></author-notes>
<pub-date pub-type="epub">
<day>31</day>
<month>05</month>
<year>2017</year>
</pub-date>
<pub-date pub-type="collection">
<year>2017</year>
</pub-date>
<volume>11</volume>
<elocation-id>269</elocation-id>
<history>
<date date-type="received">
<day>28</day>
<month>02</month>
<year>2017</year>
</date>
<date date-type="accepted">
<day>26</day>
<month>04</month>
<year>2017</year>
</date>
</history>
<permissions>
<copyright-statement>Copyright &#x000A9; 2017 De Feo, Boi, Safaai, Onken, Panzeri and Vato.</copyright-statement>
<copyright-year>2017</copyright-year>
<copyright-holder>De Feo, Boi, Safaai, Onken, Panzeri and Vato</copyright-holder>
<license xlink:href="http://creativecommons.org/licenses/by/4.0/"><p>This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.</p></license>
</permissions>
<abstract>
<p>Brain-machine interfaces (BMIs) promise to improve the quality of life of patients suffering from sensory and motor disabilities by creating a direct communication channel between the brain and the external world. Yet, their performance is currently limited by the relatively small amount of information that can be decoded from neural activity recorded form the brain. We have recently proposed that such decoding performance may be improved when using state-dependent decoding algorithms that predict and discount the large component of the trial-to-trial variability of neural activity which is due to the dependence of neural responses on the network&#x00027;s current internal state. Here we tested this idea by using a bidirectional BMI to investigate the gain in performance arising from using a state-dependent decoding algorithm. This BMI, implemented in anesthetized rats, controlled the movement of a dynamical system using neural activity decoded from motor cortex and fed back to the brain the dynamical system&#x00027;s position by electrically microstimulating somatosensory cortex. We found that using state-dependent algorithms that tracked the dynamics of ongoing activity led to an increase in the amount of information extracted form neural activity by 22%, with a consequently increase in all of the indices measuring the BMI&#x00027;s performance in controlling the dynamical system. This suggests that state-dependent decoding algorithms may be used to enhance BMIs at moderate computational cost.</p>
</abstract>
<kwd-group>
<kwd>state dependence</kwd>
<kwd>brain-machine interfaces</kwd>
<kwd>neural coding</kwd>
<kwd>neural response variability</kwd>
<kwd>information coding</kwd>
<kwd>network state</kwd>
</kwd-group>
<contract-num rid="cn001">284553</contract-num>
<contract-sponsor id="cn001">Seventh Framework Programme<named-content content-type="fundref-id">10.13039/501100004963</named-content></contract-sponsor>
<counts>
<fig-count count="7"/>
<table-count count="0"/>
<equation-count count="9"/>
<ref-count count="71"/>
<page-count count="15"/>
<word-count count="11520"/>
</counts>
</article-meta>
</front>
<body>
<sec sec-type="intro" id="s1">
<title>Introduction</title>
<p>The last two decades have seen tremendous progress in the development of brain-machine interfaces, or BMIs (Lebedev and Nicolelis, <xref ref-type="bibr" rid="B36">2006</xref>; Leuthardt et al., <xref ref-type="bibr" rid="B37">2009</xref>; Andersen et al., <xref ref-type="bibr" rid="B1">2014</xref>; Bensmaia and Miller, <xref ref-type="bibr" rid="B5">2014</xref>; Moxon and Foffani, <xref ref-type="bibr" rid="B45">2015</xref>). These interfaces mediate communication between a brain and the external world, and hold an enormous potential for clinical applications. In particular, interfaces that decode neural activity (for example, decode the motor intent of the subject from premotor cortical activity), and then use this information to command an artificial actuator (for example, a robotic arm, a motorized wheelchair, or a computer cursor), can have a considerable clinical impact for the treatment of patients with neurological diseases such as stroke, spinal cord injury, or Parkinson&#x00027;s disease (Hochberg et al., <xref ref-type="bibr" rid="B28">2012</xref>; Bouton et al., <xref ref-type="bibr" rid="B10">2016</xref>; Capogrosso et al., <xref ref-type="bibr" rid="B15">2016</xref>; Moraud et al., <xref ref-type="bibr" rid="B44">2016</xref>).</p>
<p>The advances in BMIs have been assisted by technological progress that has increased the quality and quantity of the signals recorded from the brain and has improved current brain stimulation techniques (Wolpaw et al., <xref ref-type="bibr" rid="B71">2000</xref>; Lebedev and Nicolelis, <xref ref-type="bibr" rid="B36">2006</xref>; Brunner et al., <xref ref-type="bibr" rid="B12">2011</xref>; Calixto et al., <xref ref-type="bibr" rid="B14">2013</xref>; Tabot et al., <xref ref-type="bibr" rid="B64">2013</xref>; Angotzi et al., <xref ref-type="bibr" rid="B2">2014</xref>; Lebedev M., <xref ref-type="bibr" rid="B34">2014</xref>; Wander and Rao, <xref ref-type="bibr" rid="B69">2014</xref>; Gupta et al., <xref ref-type="bibr" rid="B25">2016</xref>). Despite all these progresses, several aspects of BMIs remain to be addressed. One key problem is that the large trial-to-trial variability of neural responses (Faisal et al., <xref ref-type="bibr" rid="B22">2008</xref>; Quian Quiroga and Panzeri, <xref ref-type="bibr" rid="B55">2009</xref>) still strongly limits the performance of BMIs (Baranauskas, <xref ref-type="bibr" rid="B4">2014</xref>; Lebedev M. A., <xref ref-type="bibr" rid="B35">2014</xref>). This problem has proved difficult to overcome by simply increasing the number of recording or stimulating electrodes, because trial-to-trial variability of neural activity is largely shared among neurons. This shared variability partly arises from intrinsic network-level factors (which can be collectively described as &#x0201C;network state&#x0201D;) that include fluctuations in ongoing spontaneous activity and network excitability, and the level of neuromodulation as well as general changes in behavioral state such as the level of arousal (Goris et al., <xref ref-type="bibr" rid="B24">2014</xref>; Lin et al., <xref ref-type="bibr" rid="B38">2015</xref>; Sch&#x000F6;lvinck et al., <xref ref-type="bibr" rid="B61">2015</xref>). This shared source of variability within a network can be conceptualized by thinking of neural activity as state-dependent: neural activity does not depend only on external task-related variables but also on internal endogenous network state variables, that are often collectively termed cortical state (Buonomano and Maass, <xref ref-type="bibr" rid="B13">2009</xref>; Harris and Thiele, <xref ref-type="bibr" rid="B26">2011</xref>; Ritter et al., <xref ref-type="bibr" rid="B59">2015</xref>; Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>).</p>
<p>We have recently proposed (Panzeri et al., <xref ref-type="bibr" rid="B51">2016</xref>) that the problem of shared trial-to-trial variability of neural activity may in principle be addressed, or at least alleviated, by using decoding algorithms based on decoding rules that properly consider the state-dependence of neural responses and so are not confounded by the state-induced trial-to-trial variability of neural responses to stimuli. The simplest way to take advantage of state dependent rules is, assuming that state-induced variability is additive, to first estimate the amount of single-trial firing due to state-induced variability and to discount it by subtracting it out (Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>; Panzeri et al., <xref ref-type="bibr" rid="B51">2016</xref>). Although this suggestion has not been tested yet in BMIs, studies that have used models of state dependence of neural responses based on the observation of neural activity encourage us to think that this idea may work. In fact, studies using dynamical systems models of the time course of spontaneous activity has shown that it is possible to use such model of state dependence to obtain excellent predictions of each single trial responses to stimuli (Curto et al., <xref ref-type="bibr" rid="B19">2009</xref>; Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>). Importantly, one study (Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>) has shown that good predictions of single trial responses can be used to dramatically improve (by up to &#x0007E;70%) the performance of single trial decoding of stimulus information from neural activity.</p>
<p>Building on these recent results, here we put to test our proposal, by implementing state-dependent decoding rules in a motor BMI that controlled the movement of a simulated point mass moving into a viscous medium over a horizontal plane. In this BMI, we fed to the brain information about the position of the mass by electrically microstimulating somatosensory cortex of anesthetized rats. We then recorded neural activity from motor cortex in response to this electrical stimulation, and we decoded this motor activity to drive the point mass toward a target, until the target was reached. We compared the BMI performance obtained with state-independent decoding algorithms, that only used neural activity recorded in motor cortex after the brain received information about the mass position by microstimulation, with the performance of state-dependent decoding algorithms that also used ongoing motor cortical activity prior to stimulation to discount the state-induced variability of motor cortical activity in response to the information about the mass position. The quantitative comparison of the BMI performance with state-independent and state-dependent algorithms is useful to provide an initial evaluation of the possible advantages of using state-dependent BMIs.</p>
</sec>
<sec sec-type="materials and methods" id="s2">
<title>Materials and methods</title>
<sec>
<title>General scheme of the state-dependent BMI</title>
<p>In this work we developed a novel neural interface, which we termed state-dependent BMI, by including a state-dependent decoder module to the dynamic Neural Interface described the first time in Vato et al. (<xref ref-type="bibr" rid="B66">2012</xref>) and then updated in Szymanski et al. (<xref ref-type="bibr" rid="B63">2011</xref>), Vato et al. (<xref ref-type="bibr" rid="B67">2014</xref>), Boi et al. (<xref ref-type="bibr" rid="B7">2015a</xref>), see Figure <xref ref-type="fig" rid="F1">1A</xref>. Here our main goal is to test the potential advantages of introducing such state-dependence decoding. The BMI is summarized briefly in what follows.</p>
<fig id="F1" position="float">
<label>Figure 1</label>
<caption><p><bold>Schematic of the state-dependent bidirectional brain-machine interface. (A)</bold> We developed a state-dependent bidirectional BMI by connecting the brain of an anesthetized rat to a simulated dynamical system represented by a point mass moving in a viscous medium. An encoder translated sensory signals generated from the interaction of the dynamical system with the environment into brain stimulation patterns and a state-dependent decoder transformed the recorded neural activity&#x02014;both the post-stimulus evoked and pre-stimulus ongoing cortical activity&#x02014;into motor commands to control the external system. <bold>(B)</bold> The space in which the point mass can move was divided into four sensory regions (<italic>A</italic><sub><italic>1</italic></sub>, &#x02026;, <italic>A</italic><sub><italic>4</italic></sub>) and four force vectors (<italic>F</italic><sub><italic>1</italic></sub>, &#x02026;, <italic>F</italic><sub><italic>4</italic></sub>) (black arrows), pointing toward the target (gray circle), were placed in the centroid of each region. The actual position of the point mass was converted by the encoder into a pattern of intracortical microstimulation delivered to the somatosensory cortex (top from left to right). A state-dependent decoder transformed the neural activity recorded from the motor cortex of rat&#x00027;s brain into a force vector (orange arrow) to be applied to the point mass (bottom from right to left).</p></caption>
<graphic xlink:href="fnins-11-00269-g0001.tif"/>
</fig>
<p>The main purpose of the BMI was to control the movement of a dynamical system (a simulated point mass moving in a viscous medium, for details see Text <xref ref-type="supplementary-material" rid="SM1">S1</xref>) to reach a positional target. Here we set-up the neural interface by dividing the space in which the mass can move, a square box, into four equal regions (<italic>A</italic><sub><italic>1</italic></sub>,&#x02026;,<italic>A</italic><sub><italic>4</italic></sub>). We also defined four force vectors (<italic>F</italic><sub><italic>1</italic></sub>,&#x02026;,<italic>F</italic><sub><italic>4</italic></sub>) placed in the centroid of each regions and pointing toward the target represented by a circular region placed in the center of the workspace (Figure <xref ref-type="fig" rid="F1">1B</xref>, top left).</p>
<p>Before each experimental session, we also chose four different couples of adjacent electrodes of a stimulating multielectrode arrays placed in the somatosensory cortex (S1) of an anesthetized rat.</p>
<p>An encoder provided the brain with the information about the position of the point mass by using these couples of electrodes to deliver different patterns of intracortical microstimulation (ICMS) denoted as <italic>s</italic><sub><italic>1</italic></sub>, &#x02026;, <italic>s</italic><sub><italic>4</italic></sub>, each one associated to a single sensory region (Figure <xref ref-type="fig" rid="F1">1B</xref>, top-right).</p>
<p>Neural signals evoked by the micro-stimulation were recorded from the motor cortex (M1) by means of a recording multielectrode array and used to control the movement of the dynamical system. A decoder transformed the recorded signals into a force vector to be applied to the simulated point mass that moved according to its dynamics, for a predefined amount of time (Figure <xref ref-type="fig" rid="F1">1B</xref>, bottom from right to left).</p>
<p>The BMI task consisted in driving the simulated point mass toward a target region (a circle around the origin of variable size, see Results) by extracting from each stimulus-evoked neural response a force vector (<italic>F</italic><sub><italic>decoded</italic></sub>) calculated as a weighted sum of the four force vectors (<italic>F</italic><sub><italic>1</italic></sub>,&#x02026;,<italic>F</italic><sub><italic>4</italic></sub>).</p>
</sec>
<sec>
<title>Neurophysiological procedures</title>
<p>All the neurophysiological procedures have been performed in accordance with DL 116/92 of the Italian legal code and approved by the institutional review board of the University of Ferrara and by the Italian Ministry of Health (73/2008-B). The procedures are identical to those reported previously and are only briefly summarized in what follows. We refer to Vato et al. (<xref ref-type="bibr" rid="B66">2012</xref>) for more details.</p>
<p>Neural data were recorded from five male Long-Evans rats (300&#x02013;400 g) anesthetized for the entire duration of the experimental sessions by means of Xylazine (5 mg/kg) and a mixture of Tiletamine and Zolazepam (30 mg/kg) as an alternative of using narcotic drugs (Vogler, <xref ref-type="bibr" rid="B68">2006</xref>). Two craniotomies were performed above the vibrissal representation of the primary somatosensory (S1) cortex and above the vibrissal motor cortex (M1) on the same hemisphere.</p>
<p>The stimulation microwire array (Tucker Davis Technologies&#x02014;TDT) was lowered perpendicular to S1, 900&#x02013;1100 &#x003BC;m under the surface (AP &#x02212;3.5 mm, LM &#x0002B;4 mm with respect to the most posterior medial electrode of the array) using a hydraulic microdrive. Each stimulation pattern consisted of a train of 10 biphasic pulses (333 Hz pulse frequency, 200 &#x003BC;s pulse duration, 100 &#x003BC;A pulse amplitude, 30 ms train duration) delivered from 50 to 200 times during an experimental session.</p>
<p>The recording microwire array was placed at depth 300&#x02013;500 &#x003BC;m below the pia (AP &#x0002B;1.5 mm, LM &#x0002B;0.5 mm with respect to the most posterior medial electrode of the array) using a hydraulic microdrive. These locations have been chosen for the presence of several cortico-cortical connections between the two regions (Ferezou et al., <xref ref-type="bibr" rid="B23">2007</xref>; Chakrabarti et al., <xref ref-type="bibr" rid="B16">2008</xref>; Mao et al., <xref ref-type="bibr" rid="B40">2011</xref>). Both arrays had 16 microelectrodes (2 rows of 8 electrodes, 50 &#x003BC;m diameter) each one separated from the neighboring ones by 250 and 375 &#x003BC;m along and across the rows, respectively. After the insertion of the arrays, we let the electrodes to settle down for 30 min and then we run a commercial available spike-sorting software (Rasputin, Plexon Inc.) identifying 10&#x02013;15 single units per experimental session that were active from the beginning to the end of each experimental session which could last from 20 to 60 min. To get an estimate of the order of magnitude of the stability of the responses over the experimental session, we evaluated for each unit the variation in the duration of the whole experimental session of the stimulus-evoked activity. By averaging the linear slope across all the units, across all the stimuli and across all the experimental sessions, we found an average linear regression slope of &#x003B2; &#x0003D; 0.22 &#x000B1; 0.18 mHz/trial and a percentage variation of &#x0002B;20.5 &#x000B1; 16.35% with respect to mean firing rate. This moderate drift of evoked firing rate over the session is one of the sources of state dependency of neural responses that could be discounted by state dependent algorithms.</p>
<p>An illustration of the kind of recordings and responses that we collected in this way is reported in the bottom-right of Figure <xref ref-type="fig" rid="F1">1B</xref>, where we show the raster plots of spike trains during the pre- and post-stimulus window of single-units recorded in motor cortex.</p>
</sec>
<sec>
<title>State-dependent decoder</title>
<sec>
<title>Terminology and assessment of cortical states</title>
<p>The scheme of the state-dependent decoding algorithm is shown in Figure <xref ref-type="fig" rid="F2">2</xref>. We considered the ongoing activity in a pre-stimulus time window of duration &#x00394;<italic>T</italic><sub><italic>pre</italic>_<italic>stim</italic></sub> and the stimulus-evoked response in a post-stimulus time window of duration &#x00394;<italic>T</italic><sub><italic>post</italic>_<italic>stim</italic></sub>. We recorded the evoked and the ongoing Single Unit Activity (SUA), for each unit <italic>n</italic> &#x02208; {1, &#x02026;, <italic>N</italic>}, where <italic>N</italic> is the total number of units for each experimental session. We discretized the SUA by binning neural spike trains into short time intervals of 5 ms and then computing the number of spikes in each interval. As a first preliminary approach, we used uniform time binning of shortest size (5 ms) both for evoked response and for pre-stimulus ongoing activity. However, when developing the preliminary analyses, we noted that considering the ongoing activity immediately before the stimulus onset with fine (5 ms) temporal precision allowed a better performance in state-dependent decoding, whereas the beneficial effect of decoding when considering pre-stimulus activity recorded further back from the stimulus onset window did not need recording spikes with such millisecond-scale temporal precision (for details see Text <xref ref-type="supplementary-material" rid="SM1">S2</xref>). For this reason, we used for the pre-stimulus window variable time bin sizes (finer bins closer to stimulus onset and coarser bins further from stimulus onset) using a total of 39 time bins organized as shown in Table <xref ref-type="supplementary-material" rid="SM1">S1</xref>. Adaptive-size time bins gave an information advantage of &#x0007E;7% with respect to using fixed-shortest-size bins.</p>
<fig id="F2" position="float">
<label>Figure 2</label>
<caption><p><bold>Schematic of state-dependent decoding algorithm</bold>. We used a stimulating array placed in the somatosensory cortex to deliver one out of four different patterns of intracortical microstimulation (<italic>s</italic><sub><italic>1</italic></sub>, <italic>s</italic><sub><italic>2</italic></sub>, <italic>s</italic><sub><italic>3</italic></sub>, <italic>s</italic><sub><italic>4</italic></sub>) according to the position of the point mass. <bold>(A)</bold> The pre-stimulus ongoing activity and the stimulus-evoked responses (<bold><italic>a</italic></bold><sub>1</sub>, &#x02026;, <bold><italic>a</italic></bold><sub><italic>N</italic></sub>) were collected from a 16-channels recording array placed in the motor cortex. <bold>(B)</bold> For each trial <italic>m</italic>, we defined the state &#x00398;<sup><italic>m</italic></sup> from the pre-stimulus ongoing activity based on the time averaged pre-stimulus activity or by considering the time course using temporal bins of 5 ms. <bold>(C)</bold> After a spike-sorting algorithm discarded the stimulus artifacts (gray area), both the state variables and the post-stimulus responses were stored in a matrix (&#x1D538;<sup>&#x003D1;</sup>). For each trial <italic>m</italic>, a Principal Component Analysis (PCA) algorithm reduced the dimensionality of the matrix and a decoder then provided a probability <inline-formula><mml:math id="M1"><mml:mi>P</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle class="text"><mml:mtext mathvariant="bold-italic">a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> representing the posterior belief that stimulus <italic>s</italic><sub><italic>d</italic></sub> was presented after observing activity <bold><italic>a</italic></bold><sup><italic>m</italic></sup>. To improve the BMI performance, the largest value among the four probabilities was compared to a predefined threshold (<italic>P</italic><sub><italic>thr</italic></sub>) to select either a <italic>Winner Take All</italic> or a <italic>Weighted Sum</italic> procedure to obtain the direction and the magnitude of the decoded force, <italic>F</italic><sub><italic>decoded</italic></sub>, to be applied to the point mass (black arrow bottom right) from the four force vectors (<italic>F</italic><sub><italic>1</italic></sub>,&#x02026;,<italic>F</italic><sub><italic>4</italic></sub>) (colored arrows).</p></caption>
<graphic xlink:href="fnins-11-00269-g0002.tif"/>
</fig>
<p>We denote the neural spike count as <bold>R</bold><sup><italic>m</italic></sup> for the evoked response, and as <bold>&#x00398;</bold><sup><italic>m</italic></sup> for the ongoing activity, for each trial <italic>m</italic> &#x02208; {1, &#x02026;, <italic>M</italic>}, where <italic>M</italic> is the total number of trials. Each row of <bold>R</bold><sup><italic>m</italic></sup> and <bold>&#x00398;</bold><sup><italic>m</italic></sup> corresponds to one unit and each column corresponds to one time-bin <italic>t</italic>. For each trial <italic>m</italic>, we denote as <bold>r</bold><sup><italic>m</italic></sup>(<italic>t</italic>) and <bold>&#x003B8;</bold><sup><italic>m</italic></sup>(<italic>t</italic>) the columns of <bold>R</bold><sup><italic>m</italic></sup> and <bold>&#x00398;</bold><sup><italic>m</italic></sup>, respectively. The vectors <bold>r</bold><sup><italic>m</italic></sup>(<italic>t</italic>) and <bold>&#x003B8;</bold><sup><italic>m</italic></sup>(<italic>t</italic>) represent the population spike counts in bin <italic>t</italic> for the evoked response considered in the time window of duration &#x00394;<italic>T</italic><sub><italic>post</italic>_<italic>stim</italic></sub> and for the pre-stimulus ongoing activity considered in the time window of duration &#x00394;<italic>T</italic><sub><italic>pre</italic>_<italic>stim</italic></sub>, respectively. We have <inline-formula><mml:math id="M2"><mml:msup><mml:mrow><mml:mstyle class="text"><mml:mtext mathvariant="bold">R</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>&#x02208;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mi>x</mml:mi><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msup></mml:math></inline-formula>, with <italic>T</italic><sub><italic>r</italic></sub> being the number of time bins per trial considered in the post-stimulus window, and <inline-formula><mml:math id="M3"><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mo>&#x00398;</mml:mo></mml:mstyle></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>&#x02208;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mi>x</mml:mi><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:msup></mml:math></inline-formula>, with <italic>T</italic><sub>&#x003B8;</sub> being the number of time bins per trial considered in the pre-stimulus window. Note that <italic>T</italic><sub><italic>r</italic></sub> and <italic>T</italic><sub>&#x003B8;</sub> depend on &#x00394;<italic>T</italic><sub><italic>post</italic>_<italic>stim</italic></sub> and &#x00394;<italic>T</italic><sub><italic>pre</italic>_<italic>stim</italic></sub> respectively and are constant across all trials. The time bin immediately after the stimulation was labeled as bin &#x00023;1 (<italic>t</italic> &#x0003D; 1) and the last time bin of the post-stimulus time window was labeled as bin &#x00023;<italic>T</italic><sub><italic>r</italic></sub> (<italic>t</italic> &#x0003D; <italic>T</italic><sub><italic>r</italic></sub>). The time bin immediately before the stimulation was labeled as bin &#x00023;&#x02013;1 (<italic>t</italic> &#x0003D; &#x02212;1) and the first time bin of the pre-stimulus time window was labeled as bin &#x00023;&#x02013;<italic>T</italic><sub>&#x003B8;</sub> (<italic>t</italic> &#x0003D; &#x02212;<italic>T</italic><sub>&#x003B8;</sub>).</p>
<p>For each trial <italic>m</italic>, we defined the Single Unit Activity (SUA) state variables matrix as:</p>
<disp-formula id="E1"><label>(1)</label><mml:math id="M4"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mo>&#x00398;</mml:mo></mml:mstyle></mml:mrow><mml:mrow><mml:mtext class="textrm" mathvariant="normal">SUA</mml:mtext><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mo>&#x003B8;</mml:mo></mml:mstyle></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mo>&#x003B8;</mml:mo></mml:mstyle></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mo>&#x003B8;</mml:mo></mml:mstyle></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mtext class="textrm" mathvariant="normal">x</mml:mtext><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>For each trial <italic>m</italic> we defined the SUA state activity matrix as:</p>
<disp-formula id="E2"><label>(2)</label><mml:math id="M5"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>A</mml:mi></mml:mstyle><mml:mrow><mml:mtext>SUA</mml:mtext><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mo>&#x00398;</mml:mo></mml:mstyle><mml:mrow><mml:mtext>SUA</mml:mtext><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>R</mml:mi></mml:mstyle><mml:mi>m</mml:mi></mml:msup></mml:mrow><mml:mo>}</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mo>&#x003B8;</mml:mo></mml:mstyle><mml:mi>m</mml:mi></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mo>&#x003B8;</mml:mo></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mo>&#x003B8;</mml:mo></mml:mstyle><mml:mi>m</mml:mi></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mo>&#x02212;</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mo>&#x003B8;</mml:mo></mml:mstyle><mml:mi>m</mml:mi></mml:msup><mml:mo stretchy='false'>(</mml:mo><mml:mo>&#x02212;</mml:mo><mml:mn>1</mml:mn><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mrow><mml:mrow><mml:mo>&#x0007C;</mml:mo><mml:mtext>&#x000A0;&#x0200B;</mml:mtext><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msup><mml:mi>r</mml:mi><mml:mi>m</mml:mi></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mn>1</mml:mn><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x0200B;&#x000A0;</mml:mtext><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:mtext>&#x0200B;&#x000A0;</mml:mtext><mml:msup><mml:mi>r</mml:mi><mml:mi>m</mml:mi></mml:msup><mml:mrow><mml:mo>(</mml:mo><mml:mi>t</mml:mi><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mtext>&#x0200B;</mml:mtext><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:mtext>&#x0200B;</mml:mtext><mml:msup><mml:mi>r</mml:mi><mml:mi>m</mml:mi></mml:msup><mml:mo stretchy='false'>(</mml:mo><mml:msub><mml:mi>T</mml:mi><mml:mi>r</mml:mi></mml:msub><mml:mo stretchy='false'>)</mml:mo></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mo>}</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mo>&#x0211D;</mml:mo><mml:mrow><mml:mi>N</mml:mi><mml:mtext>x</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>T</mml:mi><mml:mo>&#x003B8;</mml:mo></mml:msub><mml:mtext>&#x02009;</mml:mtext><mml:mo>+</mml:mo><mml:mtext>&#x02009;</mml:mtext><mml:msub><mml:mi>T</mml:mi><mml:mi>r</mml:mi></mml:msub></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mtext>&#x02003;</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>i.e., we obtained <bold>A</bold><sup><italic>SUA,m</italic></sup> by concatenating the SUA state variable matrix and the response matrix (<bold>see</bold> Figure <xref ref-type="fig" rid="F2">2</xref>, top left). In some sessions, we found that there were fewer single units and there was little difference in the response profiles of different single units to the four stimuli. In such case, it was more convenient, faster and robust to decode neural activity after neglecting single unit identity and pooling together the activity of all units into a single Multi Unit Activity (MUA) channel. In such sessions, we defined a MUA state variables matrix and a MUA state activity matrix to describe the network state exactly as we did for the SUA case above (for details see Text <xref ref-type="supplementary-material" rid="SM1">S3</xref>). The quantitative criterion to choose between using SUA or MUA was to select the signal that optimize the decoding performance as described in Section Decoding Algorithm.</p>
<p>We denoted as <bold>A</bold><sup>&#x003D1;,<italic>m</italic></sup> the generic state activity matrix where &#x003D1; could be one of SUA or MUA.</p>
<p>For each trial <italic>m</italic>, the rows of <bold>A</bold><sup>&#x003D1;,<italic>m</italic></sup> correspond to the units and the columns to time bins, i.e., <inline-formula><mml:math id="M7"><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>n</mml:mi><mml:mo>,</mml:mo><mml:mi>t</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mstyle class="text"><mml:mtext mathvariant="bold">A</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> is the spike count at time <italic>t</italic> recorded from unit <italic>n</italic>. We reshaped <bold>A</bold><sup>&#x003D1;,<italic>m</italic></sup> in a row vector <bold>a</bold><sup>&#x003D1;,<italic>m</italic></sup> by concatenating all of its rows:</p>
<disp-formula id="E4"><label>(3)</label><mml:math id="M8"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mstyle mathvariant='bold-italic'><mml:mtext mathvariant="bold">a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msubsup></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>We called <bold>a</bold><sup>&#x003D1;,<italic>m</italic></sup> state-dependent activity vector.</p>
<p>For each trial <italic>m</italic>, given a stimulus <italic>s</italic><sub><italic>m</italic></sub> &#x02208; {<italic>s</italic><sub>1</sub>, <italic>s</italic><sub>2</sub>, <italic>s</italic><sub>3</sub>, <italic>s</italic><sub>4</sub>} and a corresponding activity vector <bold>a</bold><sup>&#x003D1;,<italic>m</italic></sup>, we defined as decoder the function <inline-formula><mml:math id="M9"><mml:msub><mml:mrow><mml:mo>&#x0015D;</mml:mo></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mstyle class="text"><mml:mtext mathvariant="bold">D</mml:mtext></mml:mstyle><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msup><mml:mrow><mml:mstyle class="text"><mml:mtext mathvariant="bold">a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>, where &#x0015D;<sub><italic>m</italic></sub> denotes the predicted stimulus.</p>
<p>To test the importance of taking into account the network state and also the usefulness of defining state variables in terms of the temporal history, rather than only of the strength of the pre-stimulus activity, we performed three different decoding operations. In each of the three types of decoding the mathematical algorithm was the same, but what varied was the neural activity that we fed to the decoder.</p>
<p>In the first case, that we called state-independent decoder (shortened to SI decoder), we fed to the decoder an activity matrix that did not contain the pre-stimulus activity (in other words, we fed to the decoder only the response matrix). This decoder did not use state dependence. In this case &#x003D1; &#x0003D; <italic>SI</italic> and <bold>a</bold><sup>&#x003D1;,<italic>m</italic></sup> &#x0003D; <bold><italic>r</italic></bold><sup><italic>m</italic></sup>, where <bold><italic>r</italic></bold><sup><italic>m</italic></sup> denotes the response vector (or state-independent activity vector).</p>
<p>In the second case, that we called state-dependent time-dependent decoder (shortened to SD-TD decoder), we fed to the decoder an activity matrix that did contain both the response matrix and also the full temporal representation of the pre-stimulus activity, in Equation (4). This decoder took advantage of knowledge of network state, and used the temporal structure of ongoing activity to determine state.</p>
<p>In the third case, that we called state-dependent time-averaged decoder (shortened to SD-TA decoder), we fed to the decoder an activity matrix that did contain both the response matrix and also the time-averaged pre-stimulus activity, in Equation (4). This decoder took advantage of knowledge of network state, but used only the strength of pre-stimulus activity, and not its time course, to determine state.</p>
<p>In all calculations we did, we fed to the decoder an activity matrix that contained spike timing information in the response (post-stimulus) period. This is because this operation maximized the amount of state-dependent information, and this made it more difficult for the state dependent decoder to add information. This ensured that our results of state dependent information increase did not result from suboptimal consideration of the temporal structure of the responses to the stimuli.</p>
<p>The state variables defined above are defined and computed in the time domain. To check if a more compact and informative definition of state could be obtained in the frequency domain, we did the following control analysis. Neural oscillations are usually quantified using LFPs. However, we could record LFPs only in one session out of 13. Thus, we could not relate systematically the pre-stimulus LFP oscillations to the state variations. Given this, and to understand whether state variables could be described with simple oscillatory parameters, in all sessions we first built the overall session MUA by pooling the spikes of all neurons and we then convolved it with a Volterra kernel (Poor, <xref ref-type="bibr" rid="B53">1988</xref>) to generate an analog population signal (termed convolved spiking activity in the following) that is similar to the LFP (the Volterra kernel was computed from the only session in which we could record both LFPs and spikes, and was similar in width and shape to those reported in other studies; Kreiman et al., <xref ref-type="bibr" rid="B32">2000</xref>; Rasch et al., <xref ref-type="bibr" rid="B58">2009</xref>). This process has been reported to generate a convolved MUA signal that correlates well with the LFP recorded from the same location (Kreiman et al., <xref ref-type="bibr" rid="B32">2000</xref>; Rasch et al., <xref ref-type="bibr" rid="B58">2009</xref>). We checked this match in the session where we had both spiking activity and LFP and we observed a good correlation between the convolved MUA signal and the LFP (&#x003C1; &#x0003D; 0.61, <italic>p</italic> &#x0003C; 0.001). We then filtered the convolved MUA signal in the (1&#x02013;4 Hz) band and we quantified the gain in state-dependent information that we obtained using either phase or power of this filtered convolved MUA signal. We found that the information gain obtained using this definition of state was 6.12 &#x000B1; 1.21%, thus smaller than that obtained with the timed-domain state computation presented throughout this paper. Information gains obtained when filtering this signal in frequency bands of higher frequency were even smaller. We thus decided to use throughout the paper the time-domain state computation procedure described above.</p>
</sec>
<sec>
<title>Decoding algorithm</title>
<p>Taking into account all trials <italic>m</italic> &#x02208; {1, &#x02026;, <italic>M</italic>}, we built the state-dependent activity matrix &#x1D538;<sup>&#x003D1;</sup> by shaping all the <italic>M</italic> vectors <bold>a</bold><sup>&#x003D1;,<italic>m</italic></sup> in rows:</p>
<disp-formula id="E5"><label>(4)</label><mml:math id="M10"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mo>&#x1D538;</mml:mo></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none none none none none none none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x022EE;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msup><mml:mrow><mml:mstyle mathvariant='bold'><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>M</mml:mi></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mtable style="text-align:axis;" equalrows="false" columnlines="none none none none none none none none none" equalcolumns="false" class="array"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>&#x022EF;</mml:mo></mml:mtd><mml:mtd><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mo>&#x022EE;</mml:mo></mml:mtd><mml:mtd><mml:mo>&#x022F1;</mml:mo></mml:mtd><mml:mtd><mml:mo>&#x022EE;</mml:mo></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn><mml:mo>,</mml:mo><mml:mo>-</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>M</mml:mi></mml:mrow></mml:msubsup></mml:mtd><mml:mtd><mml:mo>&#x022EF;</mml:mo></mml:mtd><mml:mtd><mml:msubsup><mml:mrow><mml:mi>a</mml:mi></mml:mrow><mml:mrow><mml:mi>N</mml:mi><mml:mo>,</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mi>M</mml:mi></mml:mrow></mml:msubsup></mml:mtd></mml:mtr></mml:mtable></mml:mrow><mml:mo>]</mml:mo></mml:mrow><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mstyle mathvariant="bold"><mml:mtext>x</mml:mtext></mml:mstyle><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub><mml:mtext>&#x000A0;</mml:mtext><mml:mo>&#x0002B;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>For each row of &#x1D538;<sup>&#x003D1;</sup> we had <italic>N</italic>(<italic>T</italic><sub>&#x003B8;</sub> &#x0002B; <italic>T</italic><sub><italic>r</italic></sub>) trial-independent variables.</p>
<p>We used multiclass Linear Discriminant Analysis (LDA) (Rao, <xref ref-type="bibr" rid="B57">1948</xref>; Delis et al., <xref ref-type="bibr" rid="B20">2016</xref>) to predict the stimulus associated with single trial activities using a leave-one-out cross-validation. We denote by <inline-formula><mml:math id="M11"><mml:msubsup><mml:mrow><mml:mo>&#x1D538;</mml:mo></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo></mml:mrow></mml:msubsup><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">x</mml:mtext></mml:mstyle><mml:mi>N</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup></mml:math></inline-formula> the activity matrix corresponding to the training set and by <inline-graphic xlink:href="fnins-11-00269-i0001.tif"/> the activity vector corresponding to the test trial. Before training the LDA decoder we reduced the dimensionality of <inline-formula><mml:math id="M13"><mml:msubsup><mml:mrow><mml:mo>&#x1D538;</mml:mo></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> by Principal Components Analysis (PCA) decomposition (Jolliffe, <xref ref-type="bibr" rid="B29">2002</xref>; Onken et al., <xref ref-type="bibr" rid="B48">2016</xref>), and selecting the <italic>k</italic> principal components of <inline-formula><mml:math id="M14"><mml:msubsup><mml:mrow><mml:mo>&#x1D538;</mml:mo></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo></mml:mrow></mml:msubsup></mml:math></inline-formula> (see algorithm step-by-step description in Text <xref ref-type="supplementary-material" rid="SM1">S4</xref>):</p>
<disp-formula id="E6"><label>(5)</label><mml:math id="M15"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mo>&#x1D538;</mml:mo></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>H</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msubsup><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>B</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x0002B;</mml:mo><mml:mtext class="textrm" mathvariant="normal">residual</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <inline-formula><mml:math id="M16"><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>H</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>M</mml:mi><mml:mo>-</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">x</mml:mtext></mml:mstyle><mml:mi>k</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> denotes the principal component scores matrix and <inline-formula><mml:math id="M17"><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>B</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msubsup><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mo>&#x0211D;</mml:mo></mml:mrow><mml:mrow><mml:mi>k</mml:mi><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">xN</mml:mtext></mml:mstyle><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003B8;</mml:mo></mml:mrow></mml:msub><mml:mo>&#x0002B;</mml:mo><mml:msub><mml:mrow><mml:mi>T</mml:mi></mml:mrow><mml:mrow><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:msup><mml:mtext>&#x000A0;</mml:mtext></mml:math></inline-formula> the principal components loadings matrix. We trained the decoder on <inline-formula><mml:math id="M18"><mml:msubsup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>H</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mi>t</mml:mi><mml:mi>r</mml:mi></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>k</mml:mi></mml:mrow></mml:msubsup></mml:math></inline-formula> with presented stimulus indices <italic>s</italic><sub><italic>i</italic></sub> as class labels and we tested the decoder on <inline-graphic xlink:href="fnins-11-00269-i0002.tif"/>.</p>
<p>For each test trial <italic>m</italic> and each <italic>d</italic> &#x02208; {1, 2, 3, 4}, the decoder then provided a probability <inline-formula><mml:math id="M20"><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">P</mml:mtext></mml:mstyle><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> representing the posterior belief that stimulus <italic>s</italic><sub><italic>d</italic></sub> was presented after observing activity <bold>a</bold><sup>&#x003D1;,<italic>m</italic></sup>. To improve decoding performance, we further adopted a Winner Take All (WTA) strategy to improve the decoding performance (Maass, <xref ref-type="bibr" rid="B39">2000</xref>) if, for a given trial <italic>m</italic>, the largest of the probabilities <inline-formula><mml:math id="M21"><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">P</mml:mtext></mml:mstyle><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mo>&#x02026;</mml:mo><mml:mo>,</mml:mo><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">P</mml:mtext></mml:mstyle><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> was greater that a certain threshold <italic>P</italic><sub><italic>thr</italic></sub>:</p>
<disp-formula id="E7"><label>(6)</label><mml:math id="M22"><mml:mtable columnalign='left'><mml:mtr><mml:mtd><mml:mtext>if&#x000A0;</mml:mtext><mml:munder><mml:mrow><mml:mi>max</mml:mi></mml:mrow><mml:mi>d</mml:mi></mml:munder><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext>&#x000A0;P</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x02264;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>h</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mover accent='true'><mml:mtext>P</mml:mtext><mml:mo>&#x002DC;</mml:mo></mml:mover><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mtext>&#x000A0;P</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>if&#x000A0;</mml:mtext><mml:munder><mml:mrow><mml:mi>max</mml:mi></mml:mrow><mml:mi>d</mml:mi></mml:munder><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext>&#x000A0;P</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>&#x0003E;</mml:mo><mml:msub><mml:mi>P</mml:mi><mml:mrow><mml:mi>t</mml:mi><mml:mi>h</mml:mi><mml:mi>r</mml:mi></mml:mrow></mml:msub></mml:mtd></mml:mtr><mml:mtr><mml:mtd><mml:mtext>&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;&#x000A0;</mml:mtext><mml:mrow><mml:mo>{</mml:mo><mml:mrow><mml:mtable columnalign='left'><mml:mtr columnalign='left'><mml:mtd columnalign='left'><mml:mrow><mml:mover accent='true'><mml:mtext>P</mml:mtext><mml:mo>&#x002DC;</mml:mo></mml:mover><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:mtd><mml:mtd columnalign='left'><mml:mrow><mml:mtext>if&#x000A0;</mml:mtext><mml:mi>d</mml:mi><mml:mo>=</mml:mo><mml:munder><mml:mrow><mml:mtext>argmax</mml:mtext></mml:mrow><mml:mi>d</mml:mi></mml:munder><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mtext>&#x000A0;P</mml:mtext><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mtd></mml:mtr><mml:mtr columnalign='left'><mml:mtd columnalign='left'><mml:mrow><mml:mover accent='true'><mml:mtext>P</mml:mtext><mml:mo>&#x002DC;</mml:mo></mml:mover><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:msub><mml:mi>s</mml:mi><mml:mi>d</mml:mi></mml:msub><mml:mo>&#x0007C;</mml:mo><mml:msup><mml:mstyle mathvariant='bold' mathsize='normal'><mml:mi>a</mml:mi></mml:mstyle><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:mrow></mml:mtd><mml:mtd columnalign='left'><mml:mrow><mml:mtext>otherwise</mml:mtext></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:mrow></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>For all test trials, we stored these probabilities in a matrix <inline-formula><mml:math id="M23"><mml:mover accent="true"><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>P</mml:mtext></mml:mstyle></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mo>&#x02208;</mml:mo><mml:msup><mml:mrow><mml:mrow><mml:mo>[</mml:mo><mml:mrow><mml:mn>0</mml:mn><mml:mo>,</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mo>]</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>M</mml:mi><mml:mstyle class="text"><mml:mtext class="textrm" mathvariant="normal">x</mml:mtext></mml:mstyle><mml:mn>4</mml:mn></mml:mrow></mml:msup></mml:math></inline-formula>, where each element <inline-formula><mml:math id="M24"><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mtext>p</mml:mtext></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>&#x0225C;</mml:mo><mml:mover accent="true"><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
</sec>
<sec>
<title>Decoding performance measure</title>
<p>To quantify decoding performance, we used an information theoretic characterization (Shannon, <xref ref-type="bibr" rid="B62">1948</xref>; Quian Quiroga and Panzeri, <xref ref-type="bibr" rid="B55">2009</xref>).</p>
<p>In particular, we first computed the confusion matrix <bold>Q</bold> &#x02208; [0, 1]<sup>4x4</sup> quantifying the probability that a presented stimulus <italic>s</italic><sub><italic>i</italic></sub> is decoded as stimulus <italic>s</italic><sub><italic>d</italic></sub>. Each element <bold>Q</bold> is defined as follows:</p>
<disp-formula id="E8"><label>(7)</label><mml:math id="M25"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msub><mml:mrow><mml:mtext class="textrm" mathvariant="normal">q</mml:mtext></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mi>Q</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>&#x0225C;</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>m</mml:mi><mml:mo>:</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:msub><mml:mover accent="true"><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mtext class="textrm" mathvariant="normal">P</mml:mtext><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>We then quantified decoding performance as the mutual information in the confusion matrix:</p>
<disp-formula id="E9"><label>(8)</label><mml:math id="M26"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:mi>I</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:mi>S</mml:mi><mml:mo>;</mml:mo><mml:mi>D</mml:mi></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mrow><mml:mo>&#x02211;</mml:mo></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>,</mml:mo><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mtext class="textrm" mathvariant="normal">P</mml:mtext><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:mi>Q</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mo class="qopname">log</mml:mo></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mfrac><mml:mrow><mml:mi>Q</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>Q</mml:mi><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<p>where <italic>P</italic>(<italic>s</italic><sub><italic>i</italic></sub>) is the probability that electrical stimulus <italic>s</italic><sub><italic>i</italic></sub> was applied, and <italic>Q</italic>(<italic>s</italic><sub><italic>d</italic></sub>) is the marginal probability of the decoded stimulus in the confusion matrix (Shannon, <xref ref-type="bibr" rid="B62">1948</xref>).</p>
<p>Information in the confusion matrix is measured in bits (1 bit corresponds to a reduction of uncertainty by a factor of two). It quantifies the amount of information can be extracted by decoding the stimulus from neural activity with a given decoding algorithm. In our case, information quantities obtained from the SI, SD-TA, and SD-TD algorithms quantify the information that can be extracted from neural responses without knowledge of network state, with the knowledge of the temporal structure of the network state prior to the stimulus, and with the knowledge of the time-averaged strength of the network state prior to the stimulus.</p>
<p>A systematic error in this measure of information was introduced by the fact that the stimulus conditional responses probabilities were calculated over a finite number of trials (Panzeri et al., <xref ref-type="bibr" rid="B52">2007</xref>). We corrected this bias by using a shuffling procedure (Montemurro et al., <xref ref-type="bibr" rid="B43">2007</xref>).</p>
</sec>
<sec>
<title>Decoder parameters optimization</title>
<p>We used the information in the confusion matrix <italic>I</italic>(<italic>S</italic>; <italic>D</italic>) to optimize the parameters <italic>P</italic><sub><italic>thr</italic></sub>, <italic>k</italic>, &#x003D1;, <italic>T</italic><sub>&#x003B8;</sub> and <italic>T</italic><sub><italic>r</italic></sub>. We chose the parameter values that maximized <italic>I</italic>(<italic>S</italic>; <italic>D</italic>), by using leave-one-out cross-validation on the <italic>M</italic>-1 trials of the training set. We then used the optimized parameters to evaluate the test trial (more details are presented in Text <xref ref-type="supplementary-material" rid="SM1">S4</xref> and Figure <xref ref-type="supplementary-material" rid="SM1">S1</xref>).</p>
</sec>
<sec>
<title>Decoded force vector calculation</title>
<p>For each trial <italic>m</italic>, the decoded force vector was computed as weighted sum of the four forces (<italic>F</italic><sub>1</sub>,&#x02026;,<italic>F</italic><sub>4</sub><italic>)</italic> defined during the set-up of the neural interface using <inline-formula><mml:math id="M27"><mml:mover accent="true"><mml:mrow><mml:mi>P</mml:mi></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle class="text"><mml:mtext mathvariant="bold">a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow></mml:math></inline-formula> as weights (see Figure <xref ref-type="fig" rid="F2">2</xref>)</p>
<disp-formula id="E10"><label>(9)</label><mml:math id="M28"><mml:mtable class="eqnarray" columnalign="left"><mml:mtr><mml:mtd><mml:msubsup><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mo>&#x02192;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mi>c</mml:mi><mml:mi>o</mml:mi><mml:mi>d</mml:mi><mml:mi>e</mml:mi><mml:mi>d</mml:mi></mml:mrow><mml:mrow><mml:mi>m</mml:mi></mml:mrow></mml:msubsup><mml:mtext>&#x000A0;</mml:mtext><mml:mo>=</mml:mo><mml:mtext>&#x000A0;</mml:mtext><mml:msubsup><mml:mrow><mml:mstyle displaystyle='true'><mml:mo>&#x02211;</mml:mo></mml:mstyle></mml:mrow><mml:mrow><mml:mi>d</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mn>4</mml:mn></mml:mrow></mml:msubsup><mml:mover accent="true"><mml:mrow><mml:mtext>P</mml:mtext></mml:mrow><mml:mo>&#x0007E;</mml:mo></mml:mover><mml:mrow><mml:mo stretchy="false">(</mml:mo><mml:mrow><mml:msub><mml:mrow><mml:mi>s</mml:mi></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mo>|</mml:mo><mml:msup><mml:mrow><mml:mstyle mathvariant="bold"><mml:mtext>a</mml:mtext></mml:mstyle></mml:mrow><mml:mrow><mml:mo>&#x003D1;</mml:mo><mml:mo>,</mml:mo><mml:mi>m</mml:mi></mml:mrow></mml:msup></mml:mrow><mml:mo stretchy="false">)</mml:mo></mml:mrow><mml:msub><mml:mrow><mml:mover accent="true"><mml:mrow><mml:mi>F</mml:mi></mml:mrow><mml:mo>&#x02192;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>d</mml:mi></mml:mrow></mml:msub><mml:mtext>&#x000A0;</mml:mtext></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
</sec>
</sec>
</sec>
<sec sec-type="results" id="s3">
<title>Results</title>
<p>Neural responses to a sensory stimulation depend not just on the sensory input but also on the intrinsic network variables defined as network state (Buonomano and Maass, <xref ref-type="bibr" rid="B13">2009</xref>). In this paper we tested the hypothesis that the implementation of a decoding algorithm that take into account state-induced variability in the neural responses may increase the performance of BMIs (Figures <xref ref-type="fig" rid="F1">1</xref>, <xref ref-type="fig" rid="F2">2</xref>).</p>
<p>We used state-dependent decoding rules in a motor BMI that controlled a simulated dynamical system represented by a point mass moving in a viscous medium (Vato et al., <xref ref-type="bibr" rid="B66">2012</xref>). Information about the position of the point mass was fed to the brain of an anesthetized rat by electrically microstimulating the somatosensory cortex, and the neural activity recorded from motor cortex was decoded and used to drive the mass toward a target, until the target was reached. The space in which the mass could move was divided into four contiguous sensory regions each of them associated with a different pattern of intracortical stimulation (<italic>s</italic><sub>1</sub>, <italic>s</italic><sub>2</sub>, <italic>s</italic><sub>3</sub>, <italic>s</italic><sub>4</sub>) (Figure <xref ref-type="fig" rid="F1">1B</xref>). The original, state-independent, implementation of this BMI (Vato et al., <xref ref-type="bibr" rid="B66">2012</xref>) was inspired by the spinal cord, which mediates movements by generating positions-dependent force fields (Bizzi et al., <xref ref-type="bibr" rid="B6">1991</xref>; Mussa-Ivaldi et al., <xref ref-type="bibr" rid="B46">1994</xref>; Tresch and Bizzi, <xref ref-type="bibr" rid="B65">1999</xref>). Here, this BMI was used because our extensive experience with it allowed us to be confident to run it optimally in the state-independent decoding case, which insured that the gain in performance observed with state-dependent rules was not due to fact that the stat-independent ones were inefficiently implemented.</p>
<p>We compared the BMI performance obtained by using a state-independent decoder with the performance obtained by using decoder algorithms that take into account the dependence of neural responses on the cortical state (Figure <xref ref-type="fig" rid="F2">2</xref>).</p>
<p>The term cortical state is used in the literature to describe a wide range of phenomena (Curto et al., <xref ref-type="bibr" rid="B19">2009</xref>; Harris and Thiele, <xref ref-type="bibr" rid="B26">2011</xref>; Marguet and Harris, <xref ref-type="bibr" rid="B41">2011</xref>; Pachitariu et al., <xref ref-type="bibr" rid="B49">2015</xref>). These phenomena range to the fluctuations of ongoing activity prior to stimulation reflecting endogenous changes in the network&#x00027;s excitability (Azouz and Gray, <xref ref-type="bibr" rid="B3">1999</xref>; Lakatos et al., <xref ref-type="bibr" rid="B33">2005</xref>; Curto et al., <xref ref-type="bibr" rid="B19">2009</xref>; Kayser et al., <xref ref-type="bibr" rid="B31">2015</xref>). Other definition of state include the history of stimulation prior to the current stimulus (Buonomano and Maass, <xref ref-type="bibr" rid="B13">2009</xref>), fluctuations in attention (Harris and Thiele, <xref ref-type="bibr" rid="B26">2011</xref>) and/or arousal that correlate also with biomarkers such as pupil state (Costa and Rudebeck, <xref ref-type="bibr" rid="B18">2016</xref>; Joshi et al., <xref ref-type="bibr" rid="B30">2016</xref>), and fluctuations in neuromodulation (Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>). Here we only consider as state variables those corresponding to ongoing fluctuations of the network&#x00027;s excitability and quantifiable through examining ongoing network activity a few hundreds of milliseconds prior to the application of the stimulus.</p>
<p>To examine the usefulness of knowing network state (either through the detailed examination of the time course of pre-stimulus activity or through the simpler examination of only the time-averaged pre-stimulus activity) we run the BMI with three different decoders. The first, that we called state-independent decoder (shortened to SI decoder), did not use the pre-stimulus activity but only used the post-stimulus responses. The second, that we called state-dependent time-dependent decoder (shortened to SD-TD decoder), used both the post-stimulus responses and the full temporal representation of the pre-stimulus activity. The third, that we called state-dependent time-averaged decoder (shortened to SD-TA decoder), operated on post-stimulus responses and on the time-averaged pre-stimulus activity.</p>
<p>To summarize, the SI decoder did not use state dependence at all. Of the two state dependent decoders, one (SD-TA) used only the strength of pre-stimulus activity to determine the network state, whereas the SD-TD used also the pre-stimulus activity time course to determine state.</p>
<sec>
<title>Decoding performance</title>
<p>We first studied the decoding performance of the BMI when run with these three different decoding algorithms.</p>
<p>Figure <xref ref-type="fig" rid="F3">3A</xref> reports the average over all experimental sessions of the information decoded with each algorithm. The SD-TA decoder, that took into account the state but ignored its time structure, extracted 0.026 &#x000B1; 0.008 bits of information, a larger information amount (<italic>p</italic> &#x0003D; 0.0015, two-sided Wilcoxon signed rank test) than the state-independent decoder. The SD-TD decoder that took into account state and used in full its time structure extracted 0.062 &#x000B1; 0.016 bits, a significantly larger amount of information (<italic>p</italic> &#x0003D; 2.44e-4, two-sided Wilcoxon signed rank test) with respect to both the SI decoder and the SD-TA decoder (<italic>p</italic> &#x0003D; 0.0098, two-sided Wilcoxon signed rank test). The percentage information gain with state dependent decoders over the state-independent decoder was 9.68% for the SD-TA and 21.74% for the SD-TD decoder, respectively.</p>
<fig id="F3" position="float">
<label>Figure 3</label>
<caption><p><bold>Decoding performance of state-dependent and state independent algorithms. (A)</bold> Information about the stimulus delivered in the somatosensory cortex, carried by the neural activity recorded in the motor area. We compared the state-independent decoder (SI, red bar) with two different state-dependent decoders: the state-dependent time average decoder (SD-TA), which uses state but only use time averaged pre-stimulus activity to define state), and the state-dependent time-dependent decoder (SD-TD), which uses state and uses the full timing of pre-stimulus activity to define state). <bold>(B)</bold> Comparison between the information gain due to the introduction of the state variable(s), computed as the difference between the information decoded from knowledge of state (either SD-TD, green bars; or SD-TA, blue bars) and the decoded information that the state variable carried about the stimulus. The bars report the average &#x000B1; S.E.M of the information over all experimental sessions. In all figures, <sup>&#x0002A;</sup>, <sup>&#x0002A;&#x0002A;</sup>, and <sup>&#x0002A;&#x0002A;&#x0002A;</sup> denote significance values of <italic>p</italic> &#x0003C; 0.05, 0.01, and 0.001, respectively (two-sided Wilcoxon signed rank test).</p></caption>
<graphic xlink:href="fnins-11-00269-g0003.tif"/>
</fig>
<p>We then asked whether the gain in information when taking into account state dependence could be explained because the state variables itself was informative about the stimulus. A direct relationship between stimulus and state can for example arise when the same stimulus, applied for several consecutive trials, creates a bias (due to habituation) in the pre-stimulus ongoing activity. To address this issue, we calculated the amount of information that the state variable (either defined with or without taking into account the temporal structure of ongoing activity) carried about the stimulus. This value was calculated using similar decoding procedures as for the other information quantities, but not feeding the post-stimulus response to the decoder. We found that the information carried by both state variables about the stimulus was significantly smaller (a factor of two for the SD-TA gain, <italic>p</italic> &#x0003D; 0.047, and a factor of 4 for the SD-TD gain, <italic>p</italic> &#x0003D; 2.44e-4) than the information gain of the state dependent decoders (see Figure <xref ref-type="fig" rid="F3">3B</xref>). These results show that the information gain of both the state dependent decoders was not merely a consequence of the fact that the state variable carried some stimulus information, but the information gain was in its majority due to the fact that the knowledge that response to the stimulus depends on the state helps the decoder.</p>
<p>Figure <xref ref-type="fig" rid="F4">4A</xref> reports the average value, over all experimental sessions, of the angle between the force produced by the decoding process (<italic>F</italic><sub><italic>decoded</italic></sub>) and the expected force represented by one of the four force vectors (<italic>F</italic><sub><italic>1</italic></sub>,&#x02026;,<italic>F</italic><sub><italic>4</italic></sub>) defined for each sensory region to set-up the neural interface (yellow arrow, Figure <xref ref-type="fig" rid="F4">4</xref> inset). A perfect decoding would have led to an angle equal to zero, while any deviation from zero can been considered as a decoding angular error. Taking into account the temporal structure of the state, the SD-TD decoding algorithm led to a significant reduction of the angular error with respect to the SI decoder (&#x02212;4.61 &#x000B1; 1.15 degrees; <italic>p</italic> &#x0003D; 2.44e-4, two-sided Wilcoxon signed rank test). The SD-TA decoding algorithm led to a smaller, but significant, reduction of the angular error with respect to the SI decoder (&#x02212;1.27 &#x000B1; 0.74 degrees; <italic>p</italic> &#x0003D; 0.013, two-sided Wilcoxon signed rank test). The percentage reduction of angular error with state dependent decoders over the state-independent decoder was 2.07% for the SD-TA and 7.52% for the SD-TD decoder, respectively.</p>
<fig id="F4" position="float">
<label>Figure 4</label>
<caption><p><bold>Magnitude and direction of the decoded force vectors. (A)</bold> The angular error is defined as the angle (degrees) between the force vector (<italic>F</italic><sub><italic>decoded</italic></sub>, black arrow) extracted by the decoder from the recorded signal and one of the four force vectors (<italic>F</italic><sub><italic>1</italic></sub>,&#x02026;,<italic>F</italic><sub><italic>4</italic></sub> orange arrow) associated to the sensory region to whom the actual position of the point mass belongs and. The graph shows the average &#x000B1; S.E.M of the angular errors of the decoded forces over all experimental sessions by comparing the state-independent vs. both the state-dependent decoding algorithms (SD-TA and SD-TD). The angular error gives an estimation of the decoder performance independently of the trajectories generated by the dynamical system. <bold>(B)</bold> The directive force is defined as the magnitude of the component of the decoded force pointed toward the target (<italic>F</italic><sub>dir</sub>, cyan arrow in the inset). The graph shows, in contrast with the angular error, how the average magnitude angular error of the directive forces depends on the target radius. For each values of the target radius (from 0.1 to 2 cm) we collected 800 trajectories and we compared the average (&#x000B1; S.E.M) values of the magnitude of such directive force using state-independent (red bars) and state-dependent decoders (the blue bars for the SD-TA decoder and the green bars for the SD-TD decoder).</p></caption>
<graphic xlink:href="fnins-11-00269-g0004.tif"/>
</fig>
</sec>
<sec>
<title>BMI performance</title>
<p>We then explored if and how an increase in decoding performance using a state-dependent algorithm was reflected into an increase in the BMI performance in terms of generated trajectories of the simulated dynamical system. The dynamical system controlled by the BMI was a simulated point mass placed in a simulated viscous medium and moving in a 36 &#x000D7; 36 cm simulated horizontal plane. The goal of the BMI was to move the point mass toward a target&#x02014;a circular region placed in the center of the plane (Vato et al., <xref ref-type="bibr" rid="B66">2012</xref>; Boi et al., <xref ref-type="bibr" rid="B9">2015b</xref>, <xref ref-type="bibr" rid="B8">2016</xref>) whose size was varied throughout the next subsections depending on the analysis to be performed. We initialized the position of the point mass at one of eight starting positions (circled numbers in Figure <xref ref-type="fig" rid="F5">5A</xref>). The point mass moved according to the sequence of decoded forces that the closed-loop BMI applied to the dynamical system in order to reach the target. For each experimental session we analyzed the decoded force vectors after collecting 100 trajectories for each starting positon. We measured the magnitude of the component of the decoded force pointing toward the target region, here referred to as Force Directed to the target (<italic>F</italic><sub><italic>dir</italic></sub>, cyan arrow in Figure <xref ref-type="fig" rid="F4">4A</xref> inset). For each experimental session we collected 800 trajectories and we averaged across all the decoded forces to obtain the average <italic>F</italic><sub><italic>dir</italic></sub> force magnitude. We varied the target radius values from 0.1 to 2 cm repeating the calculation for all the 13 experimental sessions, for the five values of the target radius and for the three decoder (SI, SD-TA, and SD-TD) comparing the average <italic>F</italic><sub><italic>dir</italic></sub> force magnitudes in the three decoding conditions. We found a significant increase in the <italic>F</italic><sub><italic>dir</italic></sub> force magnitude when we considered the temporal structure of the state with respect to the SI decoding for all the target radius values; we had an average increase by 33.96% (average over the different target radius values). We had also an average increase by 14.68% in the <italic>F</italic><sub><italic>dir</italic></sub> force magnitude when we considered the time averaged pre-stimulus activity as state with respect to the SI decoding, for all the target radius values (Figure <xref ref-type="fig" rid="F4">4B</xref>).</p>
<fig id="F5" position="float">
<label>Figure 5</label>
<caption><p><bold>Analysis of trajectories. (A)</bold> In this graph red dots indicate, for each trajectory, the closest points to the target (i.e., the center of the horizontal plane) when the network state information is not considered. Blue and green dots represent the cases in which decoders take into account state variables from the ongoing neural activity. Data were collected by fixing the number of steps for each trajectory (i.e., 100) and by running the system 100 times for each of the eight predefined initial positions represented by circled numbers using the three different decoding algorithms. <bold>(B)</bold> Bar plots of the average distance of the closest points from the target of the trajectories generated by a state-independent decoder (red bars) and by state-dependent decoders (blue bar for the SD-TA decoder and green bar for the SD-TD decoder).</p></caption>
<graphic xlink:href="fnins-11-00269-g0005.tif"/>
</fig>
<sec>
<title>Analysis of BMI trajectories</title>
<p>In order to evaluate the precision of the trajectories throughout the entire space in which the point mass could move we first run an analysis in which we set the target to a single point in the origin (thus the target region had a zero area and a zero radius). In this specific analysis, we stopped the running of the BMI after 100 time steps. We run the BMI as described in the previous section in order to explore whether the trajectories directed toward a point target (i.e., the origin of axes) got closer to the target when we used a state-dependent decoder with respect to a state-independent decoder. For each trajectory, we marked and plotted the positon of the point that was closest to the target point (the origin of the axes in the plane where the point mass moved). In Figure <xref ref-type="fig" rid="F5">5A</xref> we show an example of a collection of closest points to target obtained for one of the 13 experimental session used for this study (see Section Neurophysiological procedures). For each starting position, we repeated the experiment 100 times, yielding 800 points for each of the three decoders (red points for the SI decoder, blue points for the SD-TA decoder and green points for the SD-TD decoder). For each point shown in Figure <xref ref-type="fig" rid="F5">5A</xref> we measured the distance from the origin of the axes, we averaged these values and we obtained the average distance from the target. We repeated the calculation for all the experimental sessions and for the three decoders (SI, SD-TA, and SD-TD). We compared the average distances obtained by using each of the three decoders (Figure <xref ref-type="fig" rid="F5">5B</xref>). The closest points to the target extracted from the trajectories generated by running a state-dependent decoding algorithm were, on average, significantly closer to the target than using a state-independent decoder. Specifically, we found a significant decrease in the average distance from the origin of the axes of the closest points to target when the decoder considered the temporal structure of the state with respect to the SI decoder (&#x02212;3.94 &#x000B1; 1.00 mm, &#x02212;35.54%; <italic>p</italic> &#x0003D; 4.88e-4, two-sided Wilcoxon signed rank test); we did not find a significant decrease when the decoder considered the time averaged pre-stimulus activity as state with respect to the SI decoder.</p>
</sec>
<sec>
<title>Convergence rate and speed increase of BMI trajectories</title>
<p>In order to evaluate how often and how fast the BMI can reach a target, we then run the BMI by setting a finite-size target region around the origin to be reached, and we tested the performance of the BMI in reaching target regions of different sizes (varying from a target area radius of 0.1 cm to a radius of 2 cm). We quantified this performance by computing both the rate of convergence of the BMI (that is, the percentage of trajectories generated by the BMI that converged to reach the target region) and the average number of steps taken to reach the target (the latter served to evaluate the speed by which the BMI reaches the target).</p>
<p>We defined the target as circular region with radius <italic>r</italic> placed in the center of the horizontal plane. We distinguished between converging and non-converging trajectories. A trial was considered successful (i.e., the trajectory in that trial was classified as converging) if the point mass reached within the border of the circular area. When this happened the BMI was stopped and we recorded the number of steps needed to reach the target. A trial was considered unsuccessful (non-converging trajectory) if after 100 steps the point mass did not reach the target region. We computed the performance of the BMI for each tested value of the target radius.</p>
<p>For all tested values of the target radius, we found (Figure <xref ref-type="fig" rid="F6">6</xref>) a significantly superior performance of the state-dependent decoders over the state independent decoder. The state dependent decoder that considered the temporal structure of pre-stimulus activity led to a better BMI performance than the one that did not consider the temporal structure of pre-stimulus activity. On average across all the radii of the target regions considered in Figure <xref ref-type="fig" rid="F6">6</xref>, use of the state-dependent decoder that considered the temporal structure of pre-stimulus activity increased the convergence rate by 10.49%, and it decreased the number of steps to reach the target by 16.38% with respect to the state-independent case. When we used a state-dependent decoder that used only the time-averaged pre-stimulus activity the convergence rate increased (on average across all sessions and tested target radius sizes reported in Figure <xref ref-type="fig" rid="F6">6</xref>) by 4.52% and the number of steps to reach the target decreased on average by 6.56% when compared to the state-independent case.</p>
<fig id="F6" position="float">
<label>Figure 6</label>
<caption><p><bold>Convergence rate and speed of the BMI</bold>. The percentage of trajectories that reached the target and the length of these converging trajectories are described respectively by the average percentage of converging trajectories <bold>(A)</bold> and by the average number of steps <bold>(B)</bold> needed to reach the target. These two features define the performances of the bidirectional BMI and depend on the radius of the target. In these graphs we compared these two measures by running a state-independent (red bars) and two different state-dependent decoders (blue bar for the SD-TA decoder and green bar for the SD-TD decoder).</p></caption>
<graphic xlink:href="fnins-11-00269-g0006.tif"/>
</fig>
</sec>
<sec>
<title>BMI trajectories stability and reproducibility</title>
<p>We then investigated the stability and reproducibility of the trajectories obtained with state-dependent and state-independent decoders. We took the within trajectory variance, shortened to <italic>wtv</italic> and defined as <inline-formula><mml:math id="M29"><mml:msqrt><mml:mrow><mml:msup><mml:mrow><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>x</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup><mml:mo>&#x0002B;</mml:mo><mml:msup><mml:mrow><mml:msub><mml:mrow><mml:mi>C</mml:mi></mml:mrow><mml:mrow><mml:mi>y</mml:mi></mml:mrow></mml:msub></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msup></mml:mrow></mml:msqrt></mml:math></inline-formula> where <italic>C</italic><sub><italic>x</italic></sub> and <italic>C</italic><sub><italic>y</italic></sub> is the covariance of the distribution of per-step displacement along the <italic>x</italic> and <italic>y</italic> axis, respectively (Boi et al., <xref ref-type="bibr" rid="B8">2016</xref>), as a measure of how the trial-to-trial variability is reflected into the shape of the generated trajectories. Results of how <italic>wtv</italic> varies when considering state-independent or state-dependent BMIs are reported in Figure <xref ref-type="fig" rid="F7">7</xref>. To compute these results, we initialized the position of the point mass at one of eight starting positions (circled numbers in Figure <xref ref-type="fig" rid="F7">7A</xref>) and, for each trajectory, we stopped the BMI when the point mass reached the target region or, if it did not reach it, at a maximum number of steps equal to 100. For each experimental session, we collected 100 trajectories for each starting positon. We considered the mean <italic>wtv</italic> obtained by averaging the <italic>wtv</italic> computed for each set of trajectories that started from one initial position. Figure <xref ref-type="fig" rid="F7">7A</xref> shows the mean trajectories (red lines) and the covariance (light red area) generated during one experimental session with the state-independent decoder. In this experimental session we set a target radius of 2 cm. In the correspondent SD-TA and SD-TD cases, the mean trajectories (blue and green lines, respectively) and the covariance (light blue and light green areas, respectively) are also shown in Figure <xref ref-type="fig" rid="F7">7A</xref>. The mean trajectories were more straightly directed toward the target and we had a smaller <italic>wtv</italic> when the state was taken into account for decoding than when it was not. For this particular session improvement is more evident when the point mass started from positions labeled as 2, 3, and 4 and when the decoder took into account also the temporal structure of the state (SD-TD decoder, green in the figure). We repeated the experiment for all the experimental sessions and for different values of the target radius, we measured the average <italic>wtv</italic> and we show the results in Figure <xref ref-type="fig" rid="F7">7B</xref>. When we used our state-dependent decoder, considering the temporal structure of the pre-stimulus ongoing activity, the <italic>wtv</italic> decreased on average of 26.24% with respect to the state-independent case. When we considered the state as time averaging pre-stimulus activity the <italic>wtv</italic> decreased on average of 14.33% with respect to the state-independent case.</p>
<fig id="F7" position="float">
<label>Figure 7</label>
<caption><p><bold>Analysis of the dependence of the shape of trajectories on the decoding algorithms. (A)</bold> The colored lines represent the mean trajectories and the shaded areas define the covariance of the trajectories generated by running the interface 100 times from each initial position (numbered circles). The state-independent decoding algorithm is represented by the red lines, the blue and the green lines represent the mean trajectory generated by using respectively the SD-TA and SD-TD decoders. The target region is represented by a circle placed in the origin of the workspace that is subdivided into four sensory regions represented with different colors. <bold>(B)</bold> The mean within-trajectory variance (<italic>wtv</italic> &#x000B1; S.E.M) depends on the target radius and represents an index of the repeatability of the trajectories by using state-independent (red bars) and state-dependent decoders (blue and green bars).</p></caption>
<graphic xlink:href="fnins-11-00269-g0007.tif"/>
</fig>
</sec>
</sec>
</sec>
<sec sec-type="discussion" id="s4">
<title>Discussion</title>
<p>A limit for the development of BMIs is the trial-to-trial variability in neural activity, which ultimately poses an upper limit to current BMI performance. This problem cannot be easily solved by increasing the number of electrodes used to record neural activity, because part of this variability is shared across neurons, and thus cannot be just averaged away across electrodes. One approach to solve such problem is to identify the reasons of this variability and try to predict it on each trial, so that its negative effects can be discounted by a decoding algorithm benefitting from this prediction. Here we evaluated the effectiveness of this procedure. We assumed that trial-to-trial variability arises from the dependence of single trial responses to stimuli on the ongoing variations of network state, we constructed decoding algorithms trained to learn this dependence, and then we computed how much does a BMI benefit from this state-dependent decoding.</p>
<p>We tested this state-dependent decoding algorithm in a BMI developed in our laboratory (Vato et al., <xref ref-type="bibr" rid="B66">2012</xref>). We found both a general increase of decoding performance of more than 20%, which translated into all aspects of BMI performance, such as the convergence rate, variance and speed of the converging trajectories. The BMI equipped with a state-dependent decoder generated shorter, more accurate and stable trajectories of the simulated point mass moving toward the target with respect to the state-independent version. These advantages were obtained without the need to increase the invasiveness of the BMI (for example by increasing the number of electrodes), and came only at the moderate computational cost of including the time course of ongoing activity prior to the stimulus into our decoding algorithms.</p>
<p>We found that estimating network state by examining the time course of neural activity prior to stimulation, rather than relying only on time-averaged pre-stimulus activity, doubled the information gained by using state-dependence for decoding. These results suggest that the detailed time course of ongoing activity carries important information about changes in excitability of the network and strongly influences the responses to stimuli, as also put forward by recent studies using dynamical systems to model ongoing activity (Curto et al., <xref ref-type="bibr" rid="B19">2009</xref>; Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>).</p>
<p>State dependence of neural responses reflect a variety of phenomena, from the dependence of neural responses on the ongoing activity of the same network, to dependence of neural responses on changes of behavioral states such as attention or arousal that are mediated by neuromodulation. A recent study (Safaai et al., <xref ref-type="bibr" rid="B60">2015</xref>) examined the interplay between ongoing activity and neuromodulation in modulating neural responses to stimuli, and found that these channels acted complementarily to determine the cortical responses to sensory stimuli. In particular, prediction of single-trial neural responses to stimuli and the decoding of the sensory information that these responses carry was much better when using knowledge of the activity of neuromodulatory nuclei as well as knowledge of ongoing activity. An implication of this finding is that the performance of state dependent decoding algorithms is expected to increase even further if including an estimate of the activity of neuromodulatory nuclei into the state dependent decoder. Interesting, the activity of such nuclei, particularly of the ones releasing norepinephrine, correlates well with pupil size with good time resolution (Costa and Rudebeck, <xref ref-type="bibr" rid="B18">2016</xref>; Joshi et al., <xref ref-type="bibr" rid="B30">2016</xref>), suggesting non-invasive ways to improve state-dependent BMI.</p>
<p>For technical reasons, we limited the exploration of the advantages of state dependence only for the decoding part of BMIs, and we could not test their potential advantages for the encoding part. One could in principle design a state-dependent encoding algorithm that, taking into account the ongoing pre-stimulus activity, modulates the stimulation parameters according to the predicted stimulus-evoked responses. Support for this suggestion was given by Brugger and colleagues that demonstrated how to use low-frequency pre-stimulus activity to increase the reliability of the neural responses in rat&#x00027;s somatosensory cortex (Brugger et al., <xref ref-type="bibr" rid="B11">2011</xref>). Thus, closed loop BMIs that take advantage of state dependence both at the encoding and decoding stage could lead to a much larger advance in performance than the one reported here.</p>
<p>For experimental convenience, in this article we performed our initial attempt to improve BMI performance by exploiting state dependence only in anesthetized subjects. The obtained results suggest a benefit for BMI function when including state dependence. However, to prove that these advantages can be translated to BMI of actual use in real-life situations, it will be necessary to explore in future studies how to take advantage of state dependence in chronic BMIs implanted in awake behaving animals. Studies of state dependence of neural responses across different behavioral states suggest that this may be possible. In fact, studies of shared trial-to-trial variability across neurons have shown that such shared variability can be described by a small set of state-parameters across a variety of behavioral states, including awake behaving behavioral states (Ecker et al., <xref ref-type="bibr" rid="B21">2014</xref>; Goris et al., <xref ref-type="bibr" rid="B24">2014</xref>; Kayser et al., <xref ref-type="bibr" rid="B31">2015</xref>; Rabinowitz et al., <xref ref-type="bibr" rid="B56">2015</xref>), suggesting that this shared variability may be discounted also in awake preparation after characterizing the state dependence of their neuronal responses. However, although phase or power low frequency (1&#x02013;10 Hz) fluctuations of pre-stimulus neural activity seem to have a comparable effect on post-stimulus responses both in anesthetized and awake animals (Lakatos et al., <xref ref-type="bibr" rid="B33">2005</xref>; Kayser et al., <xref ref-type="bibr" rid="B31">2015</xref>), the nature of state dependence may vary across different behavioral states (Ecker et al., <xref ref-type="bibr" rid="B21">2014</xref>; Rabinowitz et al., <xref ref-type="bibr" rid="B56">2015</xref>) meaning that both the variables describing past neural activity and the specific algorithms used to predict state dependence of post-stimulus responses need to be calibrated in each specific BMI.</p>
<p>A major obstacle to be overcome to successfully implement in awake animals and real-life situations state-dependent BMIs of the type conceptualized here, is that this approach in its present form is based on observing pre-stimulus activity for relatively long periods of several hundred milliseconds. This may greatly limit the frequency by which the user may interrogate and use the interface. However, the same principles invoked here can be directly extended to predict the variability of single-trial responses to frequent, dynamic stimulations, from the combined observation of the fluctuations of past neural excitability both in response to recent stimuli and in relatively inter-stimulus periods. We thus speculate that real-life situations with frequent stimulation and interrogation of neural circuits by the BMI, may benefit from the principles of state dependency by building algorithms that estimate online the current state or current excitability level of the neural circuit both using responses to recent stimuli and ongoing activity observed in the recent past in inter-stimulus intervals. These estimates of current excitability, though not directly carrying information about the external variables that the BMI seeks to sense or control, may be useful as internal state variables to interpret the neural responses to the variables to be controlled.</p>
<p>Addressing these issues poses technological as well as mathematical challenges. One challenge regards how to implement such algorithms in a fast online form. In this respect, we note that the mathematical functions we used here are suitable to be implemented in programmable hardware and can be even approximated by using artificial neural networks (Hinton and Salakhutdinov, <xref ref-type="bibr" rid="B27">2006</xref>; Matsumoto et al., <xref ref-type="bibr" rid="B42">2016</xref>), suggesting that they could be in principle implementable in adaptive and low-power consumption devices such as neuromorphic circuits (Chicca et al., <xref ref-type="bibr" rid="B17">2014</xref>; Qiao et al., <xref ref-type="bibr" rid="B54">2015</xref>; Boi et al., <xref ref-type="bibr" rid="B8">2016</xref>). Another technological challenge regards how to track down online the temporal dynamics of pre-stimulus activity, which we showed to be useful to increase state-dependent information. In our study we tracked the time course of pre-stimulus activity by customized non-uniform temporal binning. However, this may not be practical in real life situations. Recent progresses in designing adaptive neuromorphic architectures suggest (Wang et al., <xref ref-type="bibr" rid="B70">2013</xref>) that in the next future will be possible to overcome this problem by implementing adaptive temporal binning schemes in hardware. By using such adaptive architectures, it may be possible to design acquisition hardware that self-adjusts its inherent parameters (for instance, the working frequency of the sample-and-hold circuit) naturally following the neural activity variability. A next step of this research could thus be to implement our state-dependent decoding algorithm by using the neuromorphic hardware decoder developed by our group (Boi et al., <xref ref-type="bibr" rid="B8">2016</xref>) and to test it with behaving rats in the experimental paradigm described in Boi et al. (<xref ref-type="bibr" rid="B9">2015b</xref>). A second challenge, when implementing state-dependent principles in closed-loop bidirectional BMIs (that both encode information in the nervous system by perturbing neural activity and that decode information from recorded neural activity in a closed loop) is that of the potentially different time scales of state variables (that may require observing past activity over periods of hundreds of milliseconds) and of the task- or stimulus-informative neural response variables (that often vary in short time scales of few tens of ms; Panzeri et al., <xref ref-type="bibr" rid="B50">2010</xref>). This potential mismatch in time scales poses important technological challenges for implementing a closed-loop state-dependent BMI. In particular, given that electrical microstimulation produces artifacts that may mask the recorded neural signals for few ms, it is likely that running in real-life a state-dependent closed-loop BMIs will need the development of clever strategies for optimizing the time multiplexing strategy for the simultaneous stimulation readout of signals at multiple time scales (O&#x00027;Doherty et al., <xref ref-type="bibr" rid="B47">2011</xref>).</p>
</sec>
<sec id="s5">
<title>Author contributions</title>
<p>All authors listed have made substantial, direct and intellectual contribution to the work, and approved it for publication.</p>
<sec>
<title>Conflict of interest statement</title>
<p>The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.</p>
</sec>
</sec>
</body>
<back>
<ack><p>We thank Monica Moroni and all the members of Neural Computation laboratory for useful feedback.</p>
</ack>
<sec sec-type="supplementary-material" id="s6">
<title>Supplementary material</title>
<p>The Supplementary Material for this article can be found online at: <ext-link ext-link-type="uri" xlink:href="http://journal.frontiersin.org/article/10.3389/fnins.2017.00269/full#supplementary-material">http://journal.frontiersin.org/article/10.3389/fnins.2017.00269/full#supplementary-material</ext-link></p>
<supplementary-material xlink:href="Presentation1.PDF" id="SM1" mimetype="application/pdf" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</sec>
<ref-list>
<title>References</title>
<ref id="B1">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Andersen</surname> <given-names>R. A.</given-names></name> <name><surname>Kellis</surname> <given-names>S.</given-names></name> <name><surname>Klaes</surname> <given-names>C.</given-names></name> <name><surname>Aflalo</surname> <given-names>T.</given-names></name></person-group> (<year>2014</year>). <article-title>Toward more versatile and intuitive cortical brain-machine interfaces</article-title>. <source>Curr. Biol.</source> <volume>24</volume>, <fpage>R885</fpage>&#x02013;<lpage>R897</lpage>. <pub-id pub-id-type="doi">10.1016/j.cub.2014.07.068</pub-id><pub-id pub-id-type="pmid">25247368</pub-id></citation>
</ref>
<ref id="B2">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Angotzi</surname> <given-names>G. N.</given-names></name> <name><surname>Boi</surname> <given-names>F.</given-names></name> <name><surname>Zordan</surname> <given-names>S.</given-names></name> <name><surname>Bonfanti</surname> <given-names>A.</given-names></name> <name><surname>Vato</surname> <given-names>A.</given-names></name></person-group> (<year>2014</year>). <article-title>A programmable closed-loop recording and stimulating wireless system for behaving small laboratory animals</article-title>. <source>Sci. Rep.</source> <volume>4</volume>:<fpage>5963</fpage>. <pub-id pub-id-type="doi">10.1038/srep05963</pub-id><pub-id pub-id-type="pmid">25096831</pub-id></citation>
</ref>
<ref id="B3">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Azouz</surname> <given-names>R.</given-names></name> <name><surname>Gray</surname> <given-names>C. M.</given-names></name></person-group> (<year>1999</year>). <article-title>Cellular mechanisms contributing to response variability of cortical neurons <italic>in vivo</italic></article-title>. <source>J. Neurosci.</source> <volume>19</volume>, <fpage>2209</fpage>&#x02013;<lpage>2223</lpage>. <pub-id pub-id-type="pmid">10066274</pub-id></citation>
</ref>
<ref id="B4">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Baranauskas</surname> <given-names>G.</given-names></name></person-group> (<year>2014</year>). <article-title>What limits the performance of current invasive brain machine interfaces?</article-title> <source>Front. Syst. Neurosci.</source> <volume>8</volume>:<fpage>68</fpage>. <pub-id pub-id-type="doi">10.3389/fnsys.2014.00068</pub-id><pub-id pub-id-type="pmid">24808833</pub-id></citation>
</ref>
<ref id="B5">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bensmaia</surname> <given-names>S. J.</given-names></name> <name><surname>Miller</surname> <given-names>L. E.</given-names></name></person-group> (<year>2014</year>). <article-title>Restoring sensorimotor function through intracortical interfaces: progress and looming challenges</article-title>. <source>Nat. Rev. Neurosci.</source> <volume>15</volume>, <fpage>313</fpage>&#x02013;<lpage>325</lpage>. <pub-id pub-id-type="doi">10.1038/nrn3724</pub-id><pub-id pub-id-type="pmid">24739786</pub-id></citation>
</ref>
<ref id="B6">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bizzi</surname> <given-names>E.</given-names></name> <name><surname>Mussa-Ivaldi</surname> <given-names>F. A.</given-names></name> <name><surname>Giszter</surname> <given-names>S. F.</given-names></name></person-group> (<year>1991</year>). <article-title>Computations underlying the execution of movement: a biological perspective</article-title>. <source>Science</source> <volume>253</volume>, <fpage>287</fpage>&#x02013;<lpage>291</lpage>. <pub-id pub-id-type="doi">10.1126/science.1857964</pub-id><pub-id pub-id-type="pmid">1857964</pub-id></citation>
</ref>
<ref id="B7">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Boi</surname> <given-names>F.</given-names></name> <name><surname>Diotalevi</surname> <given-names>F.</given-names></name> <name><surname>Stefanini</surname> <given-names>F.</given-names></name> <name><surname>Indiveri</surname> <given-names>G.</given-names></name> <name><surname>Bartolozzi</surname> <given-names>C.</given-names></name> <name><surname>Vato</surname> <given-names>A.</given-names></name></person-group> (<year>2015a</year>). <article-title>A modular configurable system for closed-loop bidirectional brain-machine interfaces</article-title>, in <source>2015 7th International IEEE/EMBS Conference on Neural Engineering (NER)</source> (<publisher-loc>Montpellier</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>198</fpage>&#x02013;<lpage>201</lpage>.</citation>
</ref>
<ref id="B8">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Boi</surname> <given-names>F.</given-names></name> <name><surname>Moraitis</surname> <given-names>T.</given-names></name> <name><surname>De Feo</surname> <given-names>V.</given-names></name> <name><surname>Diotalevi</surname> <given-names>F.</given-names></name> <name><surname>Bartolozzi</surname> <given-names>C.</given-names></name> <name><surname>Indiveri</surname> <given-names>G.</given-names></name> <etal/></person-group>. (<year>2016</year>). <article-title>A bidirectional brain-machine interface featuring a neuromorphic hardware decoder</article-title>. <source>Front. Neurosci.</source> <volume>10</volume>:<fpage>563</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2016.00563</pub-id><pub-id pub-id-type="pmid">28018162</pub-id></citation>
</ref>
<ref id="B9">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Boi</surname> <given-names>F.</given-names></name> <name><surname>Semprini</surname> <given-names>M.</given-names></name> <name><surname>Mussa Ivaldi</surname> <given-names>F. A.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name> <name><surname>Vato</surname> <given-names>A.</given-names></name></person-group> (<year>2015b</year>). <article-title>A bidirectional brain-machine interface connecting alert rodents to a dynamical system</article-title>, in <source>2015 37th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC)</source> (<publisher-loc>Milan</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>51</fpage>&#x02013;<lpage>54</lpage>. <pub-id pub-id-type="pmid">26736198</pub-id></citation>
</ref>
<ref id="B10">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Bouton</surname> <given-names>C. E.</given-names></name> <name><surname>Shaikhouni</surname> <given-names>A.</given-names></name> <name><surname>Annetta</surname> <given-names>N. V.</given-names></name> <name><surname>Bockbrader</surname> <given-names>M. A.</given-names></name> <name><surname>Friedenberg</surname> <given-names>D. A.</given-names></name> <name><surname>Nielson</surname> <given-names>D. M.</given-names></name> <etal/></person-group>. (<year>2016</year>). <article-title>Restoring cortical control of functional movement in a human with quadriplegia</article-title>. <source>Nature</source> <volume>533</volume>, <fpage>247</fpage>&#x02013;<lpage>250</lpage>. <pub-id pub-id-type="doi">10.1038/nature17435</pub-id><pub-id pub-id-type="pmid">27074513</pub-id></citation>
</ref>
<ref id="B11">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Brugger</surname> <given-names>D.</given-names></name> <name><surname>Butovas</surname> <given-names>S.</given-names></name> <name><surname>Bogdan</surname> <given-names>M.</given-names></name> <name><surname>Schwarz</surname> <given-names>C.</given-names></name></person-group> (<year>2011</year>). <article-title>Real-time adaptive microstimulation increases reliability of electrically evoked cortical potentials</article-title>. <source>IEEE Trans. Biomed. Eng.</source> <volume>58</volume>, <fpage>1483</fpage>&#x02013;<lpage>1491</lpage>. <pub-id pub-id-type="doi">10.1109/TBME.2011.2107512</pub-id><pub-id pub-id-type="pmid">21257369</pub-id></citation>
</ref>
<ref id="B12">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Brunner</surname> <given-names>P.</given-names></name> <name><surname>Bianchi</surname> <given-names>L.</given-names></name> <name><surname>Guger</surname> <given-names>C.</given-names></name> <name><surname>Cincotti</surname> <given-names>F.</given-names></name> <name><surname>Schalk</surname> <given-names>G.</given-names></name></person-group> (<year>2011</year>). <article-title>Current trends in hardware and software for brain-computer interfaces (BCIs)</article-title>. <source>J. Neural Eng.</source> <volume>8</volume>:<fpage>25001</fpage>. <pub-id pub-id-type="doi">10.1088/1741-2560/8/2/025001</pub-id><pub-id pub-id-type="pmid">21436536</pub-id></citation>
</ref>
<ref id="B13">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Buonomano</surname> <given-names>D. V.</given-names></name> <name><surname>Maass</surname> <given-names>W.</given-names></name></person-group> (<year>2009</year>). <article-title>State-dependent computations: spatiotemporal processing in cortical networks</article-title>. <source>Nat. Rev. Neurosci.</source> <volume>10</volume>, <fpage>113</fpage>&#x02013;<lpage>125</lpage>. <pub-id pub-id-type="doi">10.1038/nrn2558</pub-id><pub-id pub-id-type="pmid">19145235</pub-id></citation>
</ref>
<ref id="B14">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Calixto</surname> <given-names>R.</given-names></name> <name><surname>Salamat</surname> <given-names>B.</given-names></name> <name><surname>Rode</surname> <given-names>T.</given-names></name> <name><surname>Hartmann</surname> <given-names>T.</given-names></name> <name><surname>Volckaerts</surname> <given-names>B.</given-names></name> <name><surname>Ruther</surname> <given-names>P.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Investigation of a new electrode array technology for a central auditory prosthesis</article-title>. <source>PLoS ONE</source> <volume>8</volume>:<fpage>e82148</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0082148</pub-id><pub-id pub-id-type="pmid">24312638</pub-id></citation>
</ref>
<ref id="B15">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Capogrosso</surname> <given-names>M.</given-names></name> <name><surname>Milekovic</surname> <given-names>T.</given-names></name> <name><surname>Borton</surname> <given-names>D.</given-names></name> <name><surname>Wagner</surname> <given-names>F.</given-names></name> <name><surname>Moraud</surname> <given-names>E. M.</given-names></name> <name><surname>Mignardot</surname> <given-names>J.-B.</given-names></name> <etal/></person-group>. (<year>2016</year>). <article-title>A brain&#x02013;spine interface alleviating gait deficits after spinal cord injury in primates</article-title>. <source>Nature</source> <volume>539</volume>, <fpage>284</fpage>&#x02013;<lpage>288</lpage>. <pub-id pub-id-type="doi">10.1038/nature20118</pub-id><pub-id pub-id-type="pmid">27830790</pub-id></citation>
</ref>
<ref id="B16">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chakrabarti</surname> <given-names>S.</given-names></name> <name><surname>Zhang</surname> <given-names>M.</given-names></name> <name><surname>Alloway</surname> <given-names>K. D.</given-names></name></person-group> (<year>2008</year>). <article-title>MI neuronal responses to peripheral whisker stimulation: relationship to neuronal activity in SI barrels and septa</article-title>. <source>J. Neurophysiol.</source> <volume>100</volume>, <fpage>50</fpage>&#x02013;<lpage>63</lpage>. <pub-id pub-id-type="doi">10.1152/jn.90327.2008</pub-id><pub-id pub-id-type="pmid">18450580</pub-id></citation>
</ref>
<ref id="B17">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Chicca</surname> <given-names>E.</given-names></name> <name><surname>Stefanini</surname> <given-names>F.</given-names></name> <name><surname>Bartolozzi</surname> <given-names>C.</given-names></name> <name><surname>Indiveri</surname> <given-names>G.</given-names></name></person-group> (<year>2014</year>). <article-title>Neuromorphic electronic circuits for building autonomous cognitive systems</article-title>. <source>Proc. IEEE</source> <volume>102</volume>, <fpage>1367</fpage>&#x02013;<lpage>1388</lpage>. <pub-id pub-id-type="doi">10.1109/JPROC.2014.2313954</pub-id></citation>
</ref>
<ref id="B18">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Costa</surname> <given-names>V. D.</given-names></name> <name><surname>Rudebeck</surname> <given-names>P. H.</given-names></name></person-group> (<year>2016</year>). <article-title>More than meets the eye: the relationship between pupil size and locus coeruleus activity</article-title>. <source>Neuron</source> <volume>89</volume>, <fpage>8</fpage>&#x02013;<lpage>10</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2015.12.031</pub-id><pub-id pub-id-type="pmid">26748086</pub-id></citation>
</ref>
<ref id="B19">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Curto</surname> <given-names>C.</given-names></name> <name><surname>Sakata</surname> <given-names>S.</given-names></name> <name><surname>Marguet</surname> <given-names>S.</given-names></name> <name><surname>Itskov</surname> <given-names>V.</given-names></name> <name><surname>Harris</surname> <given-names>K. D.</given-names></name></person-group> (<year>2009</year>). <article-title>A simple model of cortical dynamics explains variability and state-dependence of sensory responses in urethane-anesthetized auditory cortex</article-title>. <source>J. Neurosci.</source> <volume>29</volume>, <fpage>10600</fpage>&#x02013;<lpage>10612</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.2053-09.2009</pub-id><pub-id pub-id-type="pmid">19710313</pub-id></citation>
</ref>
<ref id="B20">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Delis</surname> <given-names>I.</given-names></name> <name><surname>Onken</surname> <given-names>A.</given-names></name> <name><surname>Schyns</surname> <given-names>P. G.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name> <name><surname>Philiastides</surname> <given-names>M. G.</given-names></name></person-group> (<year>2016</year>). <article-title>Space-by-time decomposition for single-trial decoding of M/EEG activity</article-title>. <source>Neuroimage</source> <volume>133</volume>, <fpage>504</fpage>&#x02013;<lpage>515</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuroimage.2016.03.043</pub-id><pub-id pub-id-type="pmid">27033682</pub-id></citation>
</ref>
<ref id="B21">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ecker</surname> <given-names>A. S.</given-names></name> <name><surname>Berens</surname> <given-names>P.</given-names></name> <name><surname>Cotton</surname> <given-names>R. J.</given-names></name> <name><surname>Subramaniyan</surname> <given-names>M.</given-names></name> <name><surname>Denfield</surname> <given-names>G. H.</given-names></name> <name><surname>Cadwell</surname> <given-names>C. R.</given-names></name> <etal/></person-group>. (<year>2014</year>). <article-title>State dependence of noise correlations in macaque primary visual cortex</article-title>. <source>Neuron</source> <volume>82</volume>, <fpage>235</fpage>&#x02013;<lpage>248</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2014.02.006</pub-id><pub-id pub-id-type="pmid">24698278</pub-id></citation>
</ref>
<ref id="B22">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Faisal</surname> <given-names>A. A.</given-names></name> <name><surname>Selen</surname> <given-names>L. P. J.</given-names></name> <name><surname>Wolpert</surname> <given-names>D. M.</given-names></name></person-group> (<year>2008</year>). <article-title>Noise in the nervous system</article-title>. <source>Nat. Rev. Neurosci.</source> <volume>9</volume>, <fpage>292</fpage>&#x02013;<lpage>303</lpage>. <pub-id pub-id-type="doi">10.1038/nrn2258</pub-id><pub-id pub-id-type="pmid">18319728</pub-id></citation>
</ref>
<ref id="B23">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ferezou</surname> <given-names>I.</given-names></name> <name><surname>Haiss</surname> <given-names>F.</given-names></name> <name><surname>Gentet</surname> <given-names>L. J.</given-names></name> <name><surname>Aronoff</surname> <given-names>R.</given-names></name> <name><surname>Weber</surname> <given-names>B.</given-names></name> <name><surname>Petersen</surname> <given-names>C. C. H.</given-names></name></person-group> (<year>2007</year>). <article-title>Spatiotemporal dynamics of cortical sensorimotor integration in behaving mice</article-title>. <source>Neuron</source> <volume>56</volume>, <fpage>907</fpage>&#x02013;<lpage>923</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2007.10.007</pub-id><pub-id pub-id-type="pmid">18054865</pub-id></citation>
</ref>
<ref id="B24">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Goris</surname> <given-names>R. L. T.</given-names></name> <name><surname>Movshon</surname> <given-names>J. A.</given-names></name> <name><surname>Simoncelli</surname> <given-names>E. P.</given-names></name></person-group> (<year>2014</year>). <article-title>Partitioning neuronal variability</article-title>. <source>Nat. Neurosci.</source> <volume>17</volume>, <fpage>858</fpage>&#x02013;<lpage>865</lpage>. <pub-id pub-id-type="doi">10.1038/nn.3711</pub-id><pub-id pub-id-type="pmid">24777419</pub-id></citation>
</ref>
<ref id="B25">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Gupta</surname> <given-names>I.</given-names></name> <name><surname>Serb</surname> <given-names>A.</given-names></name> <name><surname>Khiat</surname> <given-names>A.</given-names></name> <name><surname>Zeitler</surname> <given-names>R.</given-names></name> <name><surname>Vassanelli</surname> <given-names>S.</given-names></name> <name><surname>Prodromakis</surname> <given-names>T.</given-names></name></person-group> (<year>2016</year>). <article-title>Real-time encoding and compression of neuronal spikes by metal-oxide memristors</article-title>. <source>Nat. Commun.</source> <volume>7</volume>, <fpage>1</fpage>&#x02013;<lpage>16</lpage>. <pub-id pub-id-type="doi">10.1038/ncomms12805</pub-id><pub-id pub-id-type="pmid">27666698</pub-id></citation>
</ref>
<ref id="B26">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Harris</surname> <given-names>K. D.</given-names></name> <name><surname>Thiele</surname> <given-names>A.</given-names></name></person-group> (<year>2011</year>). <article-title>Cortical state and attention</article-title>. <source>Nat. Rev. Neurosci.</source> <volume>12</volume>, <fpage>509</fpage>&#x02013;<lpage>523</lpage>. <pub-id pub-id-type="doi">10.1038/nrn3084</pub-id><pub-id pub-id-type="pmid">21829219</pub-id></citation>
</ref>
<ref id="B27">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hinton</surname> <given-names>G. E.</given-names></name> <name><surname>Salakhutdinov</surname> <given-names>R. R.</given-names></name></person-group> (<year>2006</year>). <article-title>Reducing the dimensionality of data with neural networks</article-title>. <source>Science</source> <volume>313</volume>, <fpage>504</fpage>&#x02013;<lpage>507</lpage>. <pub-id pub-id-type="doi">10.1126/science.1127647</pub-id><pub-id pub-id-type="pmid">16873662</pub-id></citation>
</ref>
<ref id="B28">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Hochberg</surname> <given-names>L. R.</given-names></name> <name><surname>Bacher</surname> <given-names>D.</given-names></name> <name><surname>Jarosiewicz</surname> <given-names>B.</given-names></name> <name><surname>Masse</surname> <given-names>N. Y.</given-names></name> <name><surname>Simeral</surname> <given-names>J. D.</given-names></name> <name><surname>Vogel</surname> <given-names>J.</given-names></name> <etal/></person-group>. (<year>2012</year>). <article-title>Reach and grasp by people with tetraplegia using a neurally controlled robotic arm</article-title>. <source>Nature</source> <volume>485</volume>, <fpage>372</fpage>&#x02013;<lpage>375</lpage>. <pub-id pub-id-type="doi">10.1038/nature11076</pub-id><pub-id pub-id-type="pmid">22596161</pub-id></citation>
</ref>
<ref id="B29">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Jolliffe</surname> <given-names>I. T.</given-names></name></person-group> (<year>2002</year>). <article-title>Principal component analysis, second edition</article-title>. <source>Encycl. Stat. Behav. Sci.</source> <volume>30</volume>:<fpage>487</fpage>. <pub-id pub-id-type="doi">10.2307/1270093</pub-id></citation>
</ref>
<ref id="B30">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Joshi</surname> <given-names>S.</given-names></name> <name><surname>Li</surname> <given-names>Y.</given-names></name> <name><surname>Kalwani</surname> <given-names>R. M.</given-names></name> <name><surname>Gold</surname> <given-names>J. I.</given-names></name></person-group> (<year>2016</year>). <article-title>Relationships between pupil diameter and neuronal activity in the locus coeruleus, colliculi, and cingulate cortex</article-title>. <source>Neuron</source> <volume>89</volume>, <fpage>221</fpage>&#x02013;<lpage>234</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2015.11.028</pub-id><pub-id pub-id-type="pmid">26711118</pub-id></citation>
</ref>
<ref id="B31">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kayser</surname> <given-names>C.</given-names></name> <name><surname>Wilson</surname> <given-names>C.</given-names></name> <name><surname>Safaai</surname> <given-names>H.</given-names></name> <name><surname>Sakata</surname> <given-names>S.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name></person-group> (<year>2015</year>). <article-title>Rhythmic auditory cortex activity at multiple timescales shapes stimulus-response gain and background firing</article-title>. <source>J. Neurosci.</source> <volume>35</volume>, <fpage>7750</fpage>&#x02013;<lpage>7762</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.0268-15.2015</pub-id><pub-id pub-id-type="pmid">25995464</pub-id></citation>
</ref>
<ref id="B32">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Kreiman</surname> <given-names>G.</given-names></name> <name><surname>Krahe</surname> <given-names>R.</given-names></name> <name><surname>Metzner</surname> <given-names>W.</given-names></name> <name><surname>Koch</surname> <given-names>C.</given-names></name> <name><surname>Gaballah</surname> <given-names>F.</given-names></name></person-group> (<year>2000</year>). <article-title>Robustness and variability of neuronal coding by amplitude-sensitive afferents in the weakly electric fish eigenmannia</article-title>. <source>J. Neurophysiol.</source> <volume>84</volume>, <fpage>189</fpage>&#x02013;<lpage>204</lpage>. <pub-id pub-id-type="pmid">10899196</pub-id></citation>
</ref>
<ref id="B33">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lakatos</surname> <given-names>P.</given-names></name> <name><surname>Shah</surname> <given-names>A. S.</given-names></name> <name><surname>Knuth</surname> <given-names>K. H.</given-names></name> <name><surname>Ulbert</surname> <given-names>I.</given-names></name> <name><surname>Karmos</surname> <given-names>G.</given-names></name> <name><surname>Schroeder</surname> <given-names>C. E.</given-names></name></person-group> (<year>2005</year>). <article-title>An oscillatory hierarchy controlling neuronal excitability and stimulus processing in the auditory cortex</article-title>. <source>J. Neurophysiol.</source> <volume>94</volume>, <fpage>1904</fpage>&#x02013;<lpage>1911</lpage>. <pub-id pub-id-type="doi">10.1152/jn.00263.2005</pub-id><pub-id pub-id-type="pmid">15901760</pub-id></citation>
</ref>
<ref id="B34">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lebedev</surname> <given-names>M.</given-names></name></person-group> (<year>2014</year>). <article-title>Brain-machine interfaces: an overview</article-title>. <source>Transl. Neurosci.</source> <volume>5</volume>, <fpage>99</fpage>&#x02013;<lpage>110</lpage>. <pub-id pub-id-type="doi">10.2478/s13380-014-0212-z</pub-id></citation>
</ref>
<ref id="B35">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lebedev</surname> <given-names>M. A.</given-names></name></person-group> (<year>2014</year>). <article-title>How to read neuron-dropping curves?</article-title> <source>Front. Syst. Neurosci.</source> <volume>8</volume>:<fpage>102</fpage>. <pub-id pub-id-type="doi">10.3389/fnsys.2014.00102</pub-id><pub-id pub-id-type="pmid">24910595</pub-id></citation>
</ref>
<ref id="B36">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lebedev</surname> <given-names>M. A.</given-names></name> <name><surname>Nicolelis</surname> <given-names>M. A. L.</given-names></name></person-group> (<year>2006</year>). <article-title>Brain-machine interfaces: past, present and future</article-title>. <source>Trends Neurosci.</source> <volume>29</volume>, <fpage>536</fpage>&#x02013;<lpage>546</lpage>. <pub-id pub-id-type="doi">10.1016/j.tins.2006.07.004</pub-id><pub-id pub-id-type="pmid">16859758</pub-id></citation>
</ref>
<ref id="B37">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Leuthardt</surname> <given-names>E. C.</given-names></name> <name><surname>Schalk</surname> <given-names>G.</given-names></name> <name><surname>Roland</surname> <given-names>J.</given-names></name> <name><surname>Rouse</surname> <given-names>A.</given-names></name> <name><surname>Moran</surname> <given-names>D. W.</given-names></name></person-group> (<year>2009</year>). <article-title>Evolution of brain-computer interfaces: going beyond classic motor physiology</article-title>. <source>Neurosurg. Focus</source> <volume>27</volume>:<fpage>E4</fpage>. <pub-id pub-id-type="doi">10.3171/2009.4.FOCUS0979</pub-id><pub-id pub-id-type="pmid">19569892</pub-id></citation>
</ref>
<ref id="B38">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Lin</surname> <given-names>I. C.</given-names></name> <name><surname>Okun</surname> <given-names>M.</given-names></name> <name><surname>Carandini</surname> <given-names>M.</given-names></name> <name><surname>Harris</surname> <given-names>K. D.</given-names></name></person-group> (<year>2015</year>). <article-title>The nature of shared cortical variability</article-title>. <source>Neuron</source> <volume>87</volume>, <fpage>644</fpage>&#x02013;<lpage>656</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2015.06.035</pub-id><pub-id pub-id-type="pmid">26212710</pub-id></citation>
</ref>
<ref id="B39">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Maass</surname> <given-names>W.</given-names></name></person-group> (<year>2000</year>). <article-title>On the computational power of winner-take-all</article-title>. <source>Neural Comput.</source> <volume>12</volume>, <fpage>2519</fpage>&#x02013;<lpage>2535</lpage>. <pub-id pub-id-type="doi">10.1162/089976600300014827</pub-id><pub-id pub-id-type="pmid">11110125</pub-id></citation>
</ref>
<ref id="B40">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mao</surname> <given-names>T.</given-names></name> <name><surname>Kusefoglu</surname> <given-names>D.</given-names></name> <name><surname>Hooks</surname> <given-names>B. M.</given-names></name> <name><surname>Huber</surname> <given-names>D.</given-names></name> <name><surname>Petreanu</surname> <given-names>L.</given-names></name> <name><surname>Svoboda</surname> <given-names>K.</given-names></name></person-group> (<year>2011</year>). <article-title>Long-range neuronal circuits underlying the interaction between sensory and motor cortex</article-title>. <source>Neuron</source> <volume>72</volume>, <fpage>111</fpage>&#x02013;<lpage>123</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2011.07.029</pub-id><pub-id pub-id-type="pmid">21982373</pub-id></citation>
</ref>
<ref id="B41">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Marguet</surname> <given-names>S. L.</given-names></name> <name><surname>Harris</surname> <given-names>K. D.</given-names></name></person-group> (<year>2011</year>). <article-title>State-dependent representation of amplitude-modulated noise stimuli in rat auditory cortex</article-title>. <source>J. Neurosci.</source> <volume>31</volume>, <fpage>6414</fpage>&#x02013;<lpage>6420</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.5773-10.2011</pub-id><pub-id pub-id-type="pmid">21525282</pub-id></citation>
</ref>
<ref id="B42">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Matsumoto</surname> <given-names>W.</given-names></name> <name><surname>Hagiwara</surname> <given-names>M.</given-names></name> <name><surname>Boufounos</surname> <given-names>P. T.</given-names></name> <name><surname>Fukushima</surname> <given-names>K. T. M.</given-names></name> <name><surname>Xiongxin</surname> <given-names>Z.</given-names></name></person-group> (<year>2016</year>). <article-title>A deep neural network architecture using dimensionality reduction with sparse matrices</article-title>. <source>Int. Conf. Neural Inf. Process.</source> <volume>4233</volume>, <fpage>304</fpage>&#x02013;<lpage>313</lpage>. <pub-id pub-id-type="doi">10.1007/11893257</pub-id></citation>
</ref>
<ref id="B43">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Montemurro</surname> <given-names>M. A.</given-names></name> <name><surname>Senatore</surname> <given-names>R.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name></person-group> (<year>2007</year>). <article-title>Tight data-robust bounds to mutual information combining shuffling and model selection techniques</article-title>. <source>Neural Comput.</source> <volume>19</volume>, <fpage>2913</fpage>&#x02013;<lpage>2957</lpage>. <pub-id pub-id-type="doi">10.1162/neco.2007.19.11.2913</pub-id><pub-id pub-id-type="pmid">17883346</pub-id></citation>
</ref>
<ref id="B44">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Moraud</surname> <given-names>E. M.</given-names></name> <name><surname>Capogrosso</surname> <given-names>M.</given-names></name> <name><surname>Formento</surname> <given-names>E.</given-names></name> <name><surname>Wenger</surname> <given-names>N.</given-names></name> <name><surname>DiGiovanna</surname> <given-names>J.</given-names></name> <name><surname>Courtine</surname> <given-names>G.</given-names></name> <etal/></person-group>. (<year>2016</year>). <article-title>Mechanisms underlying the neuromodulation of spinal circuits for correcting gait and balance deficits after spinal cord injury</article-title>. <source>Neuron</source> <volume>89</volume>, <fpage>814</fpage>&#x02013;<lpage>828</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2016.01.009</pub-id><pub-id pub-id-type="pmid">26853304</pub-id></citation>
</ref>
<ref id="B45">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Moxon</surname> <given-names>K. A.</given-names></name> <name><surname>Foffani</surname> <given-names>G.</given-names></name></person-group> (<year>2015</year>). <article-title>Brain-machine interfaces beyond neuroprosthetics</article-title>. <source>Neuron</source> <volume>86</volume>, <fpage>55</fpage>&#x02013;<lpage>67</lpage>. <pub-id pub-id-type="doi">10.1016/j.neuron.2015.03.036</pub-id><pub-id pub-id-type="pmid">25856486</pub-id></citation>
</ref>
<ref id="B46">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Mussa-Ivaldi</surname> <given-names>F. A.</given-names></name> <name><surname>Giszter</surname> <given-names>S. F.</given-names></name> <name><surname>Bizzi</surname> <given-names>E.</given-names></name></person-group> (<year>1994</year>). <article-title>Linear combinations of primitives in vertebrate motor control</article-title>. <source>Proc. Natl. Acad. Sci. U.S.A.</source> <volume>91</volume>, <fpage>7534</fpage>&#x02013;<lpage>7538</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.91.16.7534</pub-id><pub-id pub-id-type="pmid">8052615</pub-id></citation>
</ref>
<ref id="B47">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>O&#x00027;Doherty</surname> <given-names>J. E.</given-names></name> <name><surname>Lebedev</surname> <given-names>M. A.</given-names></name> <name><surname>Ifft</surname> <given-names>P. J.</given-names></name> <name><surname>Zhuang</surname> <given-names>K. Z.</given-names></name> <name><surname>Shokur</surname> <given-names>S.</given-names></name> <name><surname>Bleuler</surname> <given-names>H.</given-names></name> <etal/></person-group>. (<year>2011</year>). <article-title>Active tactile exploration using a brain-machine-brain interface</article-title>. <source>Nature</source> <volume>479</volume>, <fpage>228</fpage>&#x02013;<lpage>231</lpage>. <pub-id pub-id-type="doi">10.1038/nature10489</pub-id><pub-id pub-id-type="pmid">21976021</pub-id></citation>
</ref>
<ref id="B48">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Onken</surname> <given-names>A.</given-names></name> <name><surname>Liu</surname> <given-names>J. K.</given-names></name> <name><surname>Karunasekara</surname> <given-names>P. P. C. R.</given-names></name> <name><surname>Delis</surname> <given-names>I.</given-names></name> <name><surname>Gollisch</surname> <given-names>T.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name></person-group> (<year>2016</year>). <article-title>Using matrix and tensor factorizations for the single-trial analysis of population spike trains</article-title>. <source>PLoS Comput. Biol.</source> <volume>12</volume>:<fpage>e1005189</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pcbi.1005189</pub-id><pub-id pub-id-type="pmid">27814363</pub-id></citation>
</ref>
<ref id="B49">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Pachitariu</surname> <given-names>M.</given-names></name> <name><surname>Lyamzin</surname> <given-names>D. R.</given-names></name> <name><surname>Sahani</surname> <given-names>M.</given-names></name> <name><surname>Lesica</surname> <given-names>N. A.</given-names></name></person-group> (<year>2015</year>). <article-title>State-dependent population coding in primary auditory cortex</article-title>. <source>J. Neurosci.</source> <volume>35</volume>, <fpage>2058</fpage>&#x02013;<lpage>2073</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.3318-14.2015</pub-id><pub-id pub-id-type="pmid">25653363</pub-id></citation>
</ref>
<ref id="B50">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Panzeri</surname> <given-names>S.</given-names></name> <name><surname>Brunel</surname> <given-names>N.</given-names></name> <name><surname>Logothetis</surname> <given-names>N. K.</given-names></name> <name><surname>Kayser</surname> <given-names>C.</given-names></name></person-group> (<year>2010</year>). <article-title>Sensory neural codes using multiplexed temporal scales</article-title>. <source>Trends Neurosci.</source> <volume>33</volume>, <fpage>111</fpage>&#x02013;<lpage>120</lpage>. <pub-id pub-id-type="doi">10.1016/j.tins.2009.12.001</pub-id><pub-id pub-id-type="pmid">20045201</pub-id></citation>
</ref>
<ref id="B51">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Panzeri</surname> <given-names>S.</given-names></name> <name><surname>Safaai</surname> <given-names>H.</given-names></name> <name><surname>De Feo</surname> <given-names>V.</given-names></name> <name><surname>Vato</surname> <given-names>A.</given-names></name></person-group> (<year>2016</year>). <article-title>Implications of the dependence of neuronal activity on neural network states for the design of brain-machine interfaces</article-title>. <source>Front. Neurosci.</source> <volume>10</volume>:<fpage>165</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2016.00165</pub-id><pub-id pub-id-type="pmid">27147955</pub-id></citation>
</ref>
<ref id="B52">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Panzeri</surname> <given-names>S.</given-names></name> <name><surname>Senatore</surname> <given-names>R.</given-names></name> <name><surname>Montemurro</surname> <given-names>M. A.</given-names></name> <name><surname>Petersen</surname> <given-names>R. S.</given-names></name></person-group> (<year>2007</year>). <article-title>Correcting for the sampling bias problem in spike train information measures</article-title>. <source>J. Neurophysiol.</source> <volume>98</volume>, <fpage>1064</fpage>&#x02013;<lpage>1072</lpage>. <pub-id pub-id-type="doi">10.1152/jn.00559.2007</pub-id><pub-id pub-id-type="pmid">17615128</pub-id></citation>
</ref>
<ref id="B53">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Poor</surname> <given-names>H. V.</given-names></name></person-group> (<year>1988</year>). <source>An Introduction to Signal Detection and Estimation.</source> <publisher-loc>New York, NY</publisher-loc>: <publisher-name>Springer New York</publisher-name>.</citation>
</ref>
<ref id="B54">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Qiao</surname> <given-names>N.</given-names></name> <name><surname>Mostafa</surname> <given-names>H.</given-names></name> <name><surname>Corradi</surname> <given-names>F.</given-names></name> <name><surname>Osswald</surname> <given-names>M.</given-names></name> <name><surname>Stefanini</surname> <given-names>F.</given-names></name> <name><surname>Sumislawska</surname> <given-names>D.</given-names></name> <etal/></person-group>. (<year>2015</year>). <article-title>A reconfigurable on-line learning spiking neuromorphic processor comprising 256 neurons and 128K synapses</article-title>. <source>Front. Neurosci.</source> <volume>9</volume>:<fpage>141</fpage>. <pub-id pub-id-type="doi">10.3389/fnins.2015.00141</pub-id><pub-id pub-id-type="pmid">25972778</pub-id></citation>
</ref>
<ref id="B55">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Quian Quiroga</surname> <given-names>R.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name></person-group> (<year>2009</year>). <article-title>Extracting information from neuronal populations: information theory and decoding approaches</article-title>. <source>Nat. Rev. Neurosci.</source> <volume>10</volume>, <fpage>173</fpage>&#x02013;<lpage>185</lpage>. <pub-id pub-id-type="doi">10.1038/nrn2578</pub-id><pub-id pub-id-type="pmid">19229240</pub-id></citation>
</ref>
<ref id="B56">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rabinowitz</surname> <given-names>N. C.</given-names></name> <name><surname>Goris</surname> <given-names>R. L.</given-names></name> <name><surname>Cohen</surname> <given-names>M.</given-names></name> <name><surname>Simoncelli</surname> <given-names>E. P.</given-names></name></person-group> (<year>2015</year>). <article-title>Attention stabilizes the shared gain of V4 populations</article-title>. <source>Elife</source> <volume>4</volume>:<fpage>e08998</fpage>. <pub-id pub-id-type="doi">10.7554/eLife.08998</pub-id><pub-id pub-id-type="pmid">26523390</pub-id></citation>
</ref>
<ref id="B57">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rao</surname> <given-names>C.</given-names></name></person-group> (<year>1948</year>). <article-title>The utilization of multiple measurements in problems of biological classification</article-title>. <source>J. R. Stat. Soc. Ser. B</source> <volume>10</volume>, <fpage>159</fpage>&#x02013;<lpage>203</lpage>.</citation>
</ref>
<ref id="B58">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Rasch</surname> <given-names>M.</given-names></name> <name><surname>Logothetis</surname> <given-names>N. K.</given-names></name> <name><surname>Kreiman</surname> <given-names>G.</given-names></name></person-group> (<year>2009</year>). <article-title>From neurons to circuits: linear estimation of local field potentials</article-title>. <source>J. Neurosci.</source> <volume>29</volume>, <fpage>13785</fpage>&#x02013;<lpage>13796</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.2390-09.2009</pub-id><pub-id pub-id-type="pmid">19889990</pub-id></citation>
</ref>
<ref id="B59">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Ritter</surname> <given-names>P.</given-names></name> <name><surname>Born</surname> <given-names>J.</given-names></name> <name><surname>Brecht</surname> <given-names>M.</given-names></name> <name><surname>Dinse</surname> <given-names>H. R.</given-names></name> <name><surname>Heinemann</surname> <given-names>U.</given-names></name> <name><surname>Pleger</surname> <given-names>B.</given-names></name> <etal/></person-group>. (<year>2015</year>). <article-title>State-dependencies of learning across brain scales</article-title>. <source>Front. Comput. Neurosci.</source> <volume>9</volume>:<fpage>1</fpage>. <pub-id pub-id-type="doi">10.3389/fncom.2015.00001</pub-id><pub-id pub-id-type="pmid">25767445</pub-id></citation>
</ref>
<ref id="B60">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Safaai</surname> <given-names>H.</given-names></name> <name><surname>Neves</surname> <given-names>R.</given-names></name> <name><surname>Eschenko</surname> <given-names>O.</given-names></name> <name><surname>Logothetis</surname> <given-names>N. K.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name></person-group> (<year>2015</year>). <article-title>Modeling the effect of locus coeruleus firing on cortical state dynamics and single-trial sensory processing</article-title>. <source>Proc. Natl. Acad. Sci. U.S.A.</source> <volume>112</volume>, <fpage>12834</fpage>&#x02013;<lpage>12839</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.1516539112</pub-id><pub-id pub-id-type="pmid">26417078</pub-id></citation>
</ref>
<ref id="B61">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Sch&#x000F6;lvinck</surname> <given-names>M. L.</given-names></name> <name><surname>Saleem</surname> <given-names>A. B.</given-names></name> <name><surname>Benucci</surname> <given-names>A.</given-names></name> <name><surname>Harris</surname> <given-names>K. D.</given-names></name> <name><surname>Carandini</surname> <given-names>M.</given-names></name></person-group> (<year>2015</year>). <article-title>Cortical state determines global variability and correlations in visual cortex</article-title>. <source>J. Neurosci.</source> <volume>35</volume>, <fpage>170</fpage>&#x02013;<lpage>178</lpage>. <pub-id pub-id-type="doi">10.1523/JNEUROSCI.4994-13.2015</pub-id><pub-id pub-id-type="pmid">25568112</pub-id></citation>
</ref>
<ref id="B62">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Shannon</surname> <given-names>C. E.</given-names></name></person-group> (<year>1948</year>). <article-title>A mathematical theory of communication</article-title>. <source>Bell Syst. Tech. J.</source> <volume>27</volume>, <fpage>379</fpage>&#x02013;<lpage>423</lpage>. <pub-id pub-id-type="doi">10.1145/584091.584093</pub-id></citation>
</ref>
<ref id="B63">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Szymanski</surname> <given-names>F. D.</given-names></name> <name><surname>Semprini</surname> <given-names>M.</given-names></name> <name><surname>Mussa-Ivaldi</surname> <given-names>F. A.</given-names></name> <name><surname>Fadiga</surname> <given-names>L.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name> <name><surname>Vato</surname> <given-names>A.</given-names></name></person-group> (<year>2011</year>). <article-title>Dynamic brain-machine interface: a novel paradigm for bidirectional interaction between brains and dynamical systems</article-title>, in <source>2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society</source> (<publisher-loc>Boston, MA</publisher-loc>: <publisher-name>IEEE</publisher-name>), <fpage>4592</fpage>&#x02013;<lpage>4595</lpage>. <pub-id pub-id-type="pmid">22255360</pub-id></citation>
</ref>
<ref id="B64">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tabot</surname> <given-names>G. A.</given-names></name> <name><surname>Dammann</surname> <given-names>J. F.</given-names></name> <name><surname>Berg</surname> <given-names>J. A.</given-names></name> <name><surname>Tenore</surname> <given-names>F. V.</given-names></name> <name><surname>Boback</surname> <given-names>J. L.</given-names></name> <name><surname>Vogelstein</surname> <given-names>R. J.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Restoring the sense of touch with a prosthetic hand through a brain interface</article-title>. <source>Proc. Natl. Acad. Sci. U.S.A.</source> <volume>110</volume>, <fpage>18279</fpage>&#x02013;<lpage>18284</lpage>. <pub-id pub-id-type="doi">10.1073/pnas.1221113110</pub-id><pub-id pub-id-type="pmid">24127595</pub-id></citation>
</ref>
<ref id="B65">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Tresch</surname> <given-names>M. C.</given-names></name> <name><surname>Bizzi</surname> <given-names>E.</given-names></name></person-group> (<year>1999</year>). <article-title>Responses to spinal microstimulation in the chronically spinalized rat and their relationship to spinal systems activated by low threshold cutaneous stimulation</article-title>. <source>Exp. Brain Res.</source> <volume>129</volume>, <fpage>0401</fpage>&#x02013;<lpage>0416</lpage>. <pub-id pub-id-type="doi">10.1007/s002210050908</pub-id><pub-id pub-id-type="pmid">10591912</pub-id></citation>
</ref>
<ref id="B66">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vato</surname> <given-names>A.</given-names></name> <name><surname>Semprini</surname> <given-names>M.</given-names></name> <name><surname>Maggiolini</surname> <given-names>E.</given-names></name> <name><surname>Szymanski</surname> <given-names>F. D.</given-names></name> <name><surname>Fadiga</surname> <given-names>L.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name> <etal/></person-group>. (<year>2012</year>). <article-title>Shaping the dynamics of a bidirectional neural interface</article-title>. <source>PLoS Comput. Biol.</source> <volume>8</volume>:<fpage>e1002578</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pcbi.1002578</pub-id><pub-id pub-id-type="pmid">22829754</pub-id></citation>
</ref>
<ref id="B67">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Vato</surname> <given-names>A.</given-names></name> <name><surname>Szymanski</surname> <given-names>F. D.</given-names></name> <name><surname>Semprini</surname> <given-names>M.</given-names></name> <name><surname>Mussa-Ivaldi</surname> <given-names>F. A.</given-names></name> <name><surname>Panzeri</surname> <given-names>S.</given-names></name></person-group> (<year>2014</year>). <article-title>A bidirectional brain-machine interface algorithm that approximates arbitrary force-fields</article-title>. <source>PLoS ONE</source> <volume>9</volume>:<fpage>e91677</fpage>. <pub-id pub-id-type="doi">10.1371/journal.pone.0091677</pub-id><pub-id pub-id-type="pmid">24626393</pub-id></citation>
</ref>
<ref id="B68">
<citation citation-type="book"><person-group person-group-type="author"><name><surname>Vogler</surname> <given-names>G. A.</given-names></name></person-group> (<year>2006</year>). <article-title>Anesthesia and analgesia</article-title>, in <source>The Laboratory Rat, 2nd Edn.</source>, eds <person-group person-group-type="editor"><name><surname>Suckow</surname> <given-names>M. A.</given-names></name> <name><surname>Weisbroth</surname> <given-names>S. H.</given-names></name> <name><surname>Franklin</surname> <given-names>C. L.</given-names></name></person-group> (<publisher-loc>Burlington, MA</publisher-loc>: <publisher-name>Elsevier</publisher-name> <publisher-name>Academic Press</publisher-name>), <fpage>627</fpage>&#x02013;<lpage>664</lpage>.</citation>
</ref>
<ref id="B69">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wander</surname> <given-names>J. D.</given-names></name> <name><surname>Rao</surname> <given-names>R. P. N.</given-names></name></person-group> (<year>2014</year>). <article-title>Brain-computer interfaces: a powerful tool for scientific inquiry</article-title>. <source>Curr. Opin. Neurobiol.</source> <volume>25</volume>, <fpage>70</fpage>&#x02013;<lpage>75</lpage>. <pub-id pub-id-type="doi">10.1016/j.conb.2013.11.013</pub-id><pub-id pub-id-type="pmid">24709603</pub-id></citation>
</ref>
<ref id="B70">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wang</surname> <given-names>F. Z.</given-names></name> <name><surname>Chua</surname> <given-names>L. O.</given-names></name> <name><surname>Yang</surname> <given-names>X.</given-names></name> <name><surname>Helian</surname> <given-names>N.</given-names></name> <name><surname>Tetzlaff</surname> <given-names>R.</given-names></name> <name><surname>Schmidt</surname> <given-names>T.</given-names></name> <etal/></person-group>. (<year>2013</year>). <article-title>Adaptive neuromorphic architecture (ANA)</article-title>. <source>Neural Netw.</source> <volume>45</volume>, <fpage>111</fpage>&#x02013;<lpage>116</lpage>. <pub-id pub-id-type="doi">10.1016/j.neunet.2013.02.009</pub-id><pub-id pub-id-type="pmid">23541822</pub-id></citation>
</ref>
<ref id="B71">
<citation citation-type="journal"><person-group person-group-type="author"><name><surname>Wolpaw</surname> <given-names>J. R.</given-names></name> <name><surname>Birbaumer</surname> <given-names>N.</given-names></name> <name><surname>Heetderks</surname> <given-names>W. J.</given-names></name> <name><surname>McFarland</surname> <given-names>D. J.</given-names></name> <name><surname>Peckham</surname> <given-names>P. H.</given-names></name> <name><surname>Schalk</surname> <given-names>G.</given-names></name> <etal/></person-group>. (<year>2000</year>). <article-title>Brain-computer interface technology: a review of the first international meeting</article-title>. <source>IEEE Trans. Rehabil. Eng.</source> <volume>8</volume>, <fpage>164</fpage>&#x02013;<lpage>173</lpage>. <pub-id pub-id-type="doi">10.1109/TRE.2000.847807</pub-id><pub-id pub-id-type="pmid">10896178</pub-id></citation>
</ref>
</ref-list>
<fn-group>
<fn fn-type="financial-disclosure">
<p><bold>Funding.</bold> This work was supported by the European Commission (H2020-MSCA-IF-2014/659227, &#x0201C;STOMMAC&#x0201D;), and by the Autonomous Province of Trento, Call &#x0201C;Grandi Progetti2012,&#x0201D; project &#x0201C;Characterizing and improving brain mechanisms of attention-ATTEND.&#x0201D;</p>
</fn>
</fn-group>
</back>
</article>