Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

  • Article
  • Published:

Closed-loop enhancement and neural decoding of cognitive control in humans

Abstract

Deficits in cognitive control—that is, in the ability to withhold a default pre-potent response in favour of a more adaptive choice—are common in depression, anxiety, addiction and other mental disorders. Here we report proof-of-concept evidence that, in participants undergoing intracranial epilepsy monitoring, closed-loop direct stimulation of the internal capsule or striatum, especially the dorsal sites, enhances the participants’ cognitive control during a conflict task. We also show that closed-loop stimulation upon the detection of lapses in cognitive control produced larger behavioural changes than open-loop stimulation, and that task performance for single trials can be directly decoded from the activity of a small number of electrodes via neural features that are compatible with existing closed-loop brain implants. Closed-loop enhancement of cognitive control might remediate underlying cognitive deficits and aid the treatment of severe mental disorders.

This is a preview of subscription content, access via your institution

Access options

Buy this article

Prices may be subject to local taxes which are calculated during checkout

Fig. 1: Experimental paradigms.
Fig. 2: Effect of conflict and open-loop capsular stimulation on cognitive control.
Fig. 3: Effect of open-loop capsule stimulation on cognitive control.
Fig. 4: Closed-loop internal capsule stimulation efficiently enhances cognitive control.
Fig. 5: Neural decoding of cognitive states.

Similar content being viewed by others

Data availability

The main data supporting the results in this study are available within the paper and its Supplementary Information. Pre-processed and anonymized neural and behavioural data are available through Zenodo at https://zenodo.org/record/5083120#.YOhvWehKiUk and https://zenodo.org/record/5085197#.YOhtouhKiUk.

Code availability

Analysis code is available at https://github.com/tne-lab/MSIT-Nature-Biomedical-Engineering. The closed-loop neurostimulation system has been released as open-source code and documented46, and the neural decoding and state-space modelling engines have similarly been released for open download (https://github.com/TRANSFORM-DBS/Encoder-Decoder-Paper and https://github.com/Eden-Kramer-Lab/COMPASS).

References

  1. Roehrig, C. Mental disorders top the list of the most costly conditions in the United States: $201 billion. Health Aff. 35, 1130–1135 (2016).

    Article  Google Scholar 

  2. Gordon, J. A. On being a circuit psychiatrist. Nat. Neurosci. 19, 1385–1386 (2016).

    Article  CAS  PubMed  Google Scholar 

  3. Insel, T. R. Disruptive insights in psychiatry: transforming a clinical discipline. J. Clin. Invest. 119, 700–705 (2009).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  4. Mayberg, H. S. Targeted electrode-based modulation of neural circuits for depression. J. Clin. Invest. 119, 717–725 (2009).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  5. Graat, I., Figee, M. & Denys, D. The application of deep brain stimulation in the treatment of psychiatric disorders. Int. Rev. Psychiatry 29, 178–190 (2017).

    Article  PubMed  Google Scholar 

  6. Sullivan, C. R. P., Olsen, S. & Widge, A. S. Deep brain stimulation for psychiatric disorders: from focal brain targets to cognitive networks. NeuroImage 225, 117515 (2021).

    Article  PubMed  Google Scholar 

  7. Scangos, K. W. & Ross, D. A. What we’ve got here is failure to communicate: improving interventional psychiatry with closed-loop stimulation. Biol. Psychiatry 84, e55–e57 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  8. Widge, A. S., Malone, D. A. & Dougherty, D. D. Closing the loop on deep brain stimulation for treatment-resistant depression. Front. Neurosci. 12, 175 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  9. Widge, A. S. & Miller, E. K. Targeting cognition and networks through neural oscillations: next-generation clinical brain stimulation. JAMA Psychiatry 76, 671–672 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  10. Cuthbert, B. N. & Insel, T. R. Toward the future of psychiatric diagnosis: the seven pillars of RDoC. BMC Med. 11, 126 (2013).

    Article  PubMed  PubMed Central  Google Scholar 

  11. Kirkby, L. A. et al. An amygdala-hippocampus subnetwork that encodes variation in human mood. Cell 175, 1688–1700.e14 (2018).

    Article  CAS  PubMed  Google Scholar 

  12. Veerakumar, A. et al. Field potential 1/f activity in the subcallosal cingulate region as a candidate signal for monitoring deep brain stimulation for treatment-resistant depression. J. Neurophysiol. 122, 1023–1035 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  13. Widge, A. S. et al. Treating refractory mental illness with closed-loop brain stimulation: progress towards a patient-specific transdiagnostic approach. Exp. Neurol. 287, 461–472 (2017).

    Article  PubMed  Google Scholar 

  14. Badre, D. Cognitive control, hierarchy, and the rostro-caudal organization of the frontal lobes. Trends Cogn. Sci. 12, 193–200 (2008).

    Article  PubMed  Google Scholar 

  15. Grahek, I., Shenhav, A., Musslick, S., Krebs, R. M. & Koster, E. H. W. Motivation and cognitive control in depression. Neurosci. Biobehav. Rev. 102, 371–381 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  16. Kouneiher, F., Charron, S. & Koechlin, E. Motivation and cognitive control in the human prefrontal cortex. Nat. Neurosci. 12, 939–945 (2009).

    Article  CAS  PubMed  Google Scholar 

  17. Solomon, M. et al. The neural substrates of cognitive control deficits in autism spectrum disorders. Neuropsychologia 47, 2515–2526 (2009).

    Article  PubMed  PubMed Central  Google Scholar 

  18. Widge, A. S. et al. Deep brain stimulation of the internal capsule enhances human cognitive control and prefrontal cortex function. Nat. Commun. 10, 1–11 (2019).

    Article  CAS  Google Scholar 

  19. Widge, A. S., Heilbronner, S. R. & Hayden, B. Y. Prefrontal cortex and cognitive control: new insights from human electrophysiology. F1000Research 8, F1000 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  20. Cavanagh, J. F. & Frank, M. J. Frontal theta as a mechanism for cognitive control. Trends Cogn. Sci. 18, 414–421 (2014).

    Article  PubMed  PubMed Central  Google Scholar 

  21. Sharpe, M. J. et al. An integrated model of action selection: distinct modes of cortical control of striatal decision making. Annu. Rev. Psychol. 70, 53–76 (2019).

    Article  PubMed  Google Scholar 

  22. Bari, A. & Robbins, T. W. Inhibition and impulsivity: behavioral and neural basis of response control. Prog. Neurobiol. 108, 44–79 (2013).

    Article  PubMed  Google Scholar 

  23. Burguière, E., Monteiro, P., Mallet, L., Feng, G. & Graybiel, A. M. Striatal circuits, habits, and implications for obsessive–compulsive disorder. Curr. Opin. Neurobiol. 30, 59–65 (2015).

    Article  PubMed  Google Scholar 

  24. Cohen, M. X. Midfrontal theta tracks action monitoring over multiple interactive time scales. NeuroImage 141, 262–272 (2016).

    Article  PubMed  Google Scholar 

  25. Ryman, S. G. et al. Impaired midline theta power and connectivity during proactive cognitive control in schizophrenia. Biol. Psychiatry 84, 675–683 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  26. Provenza, N. R. et al. Decoding task engagement from distributed network electrophysiology in humans. J. Neural Eng. 16, 056015 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  27. Smith, E. H. et al. Widespread temporal coding of cognitive control in the human prefrontal cortex. Nat. Neurosci. 22, 1883–1891 (2019).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  28. Voytek, B. et al. Oscillatory dynamics coordinating human frontal networks in support of goal maintenance. Nat. Neurosci. 18, 1318–1324 (2015).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  29. Haber, S. N. et al. Circuits, networks, and neuropsychiatric disease: transitioning from anatomy to imaging. Biol. Psychiatry 87, 318–327 (2020).

    Article  CAS  PubMed  Google Scholar 

  30. Haber, S. N. Corticostriatal circuitry. Dialogues Clin. Neurosci. 18, 7–21 (2016).

    Article  PubMed  PubMed Central  Google Scholar 

  31. Makris, N. et al. Variability and anatomical specificity of the orbitofrontothalamic fibers of passage in the ventral capsule/ventral striatum (VC/VS): precision care for patient-specific tractography-guided targeting of deep brain stimulation (DBS) in obsessive compulsive disorder (OCD). Brain Imaging Behav. 10, 1054–1067 (2016).

    Article  PubMed  PubMed Central  Google Scholar 

  32. Li, N. et al. A unified connectomic target for deep brain stimulation in obsessive-compulsive disorder. Nat. Commun. 11, 3364 (2020).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  33. Dubreuil-Vall, L., Chau, P., Ruffini, G., Widge, A. S. & Camprodon, J. A. tDCS to the left DLPFC modulates cognitive and physiological correlates of executive function in a state-dependent manner. Brain Stimul. 12, 1456–1463 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  34. Tyagi, H. et al. A randomized trial directly comparing ventral capsule and anteromedial subthalamic nucleus stimulation in obsessive-compulsive disorder: clinical and imaging evidence for dissociable effects. Biol. Psychiatry 85, 726–734 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  35. Sheth, S. A. et al. Human dorsal anterior cingulate cortex neurons mediate ongoing behavioural adaptation. Nature 488, 218–221 (2012).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  36. Wodlinger, B. et al. Ten-dimensional anthropomorphic arm control in a human brain−machine interface: difficulties, solutions, and limitations. J. Neural Eng. 12, 016011 (2015).

    Article  CAS  PubMed  Google Scholar 

  37. Hochberg, L. R. et al. Reach and grasp by people with tetraplegia using a neurally controlled robotic arm. Nature 485, 372–375 (2012).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  38. Shenhav, A., Cohen, J. D. & Botvinick, M. M. Dorsal anterior cingulate cortex and the value of control. Nat. Neurosci. 19, 1286–1291 (2016).

    Article  CAS  PubMed  Google Scholar 

  39. Gillan, C. M., Kosinski, M., Whelan, R., Phelps, E. A. & Daw, N. D. Characterizing a psychiatric symptom dimension related to deficits in goal-directed control. eLife 5, e11305 (2016).

    Article  PubMed  PubMed Central  Google Scholar 

  40. Bourget, D. et al. An implantable, rechargeable neuromodulation research tool using a distributed interface and algorithm architecture. In 7th International IEEE/EMBS Conference on Neural Engineering (NER) (IEEE, 2015).

  41. Bach, D. R., Hoffmann, M., Finke, C., Hurlemann, R. & Ploner, C. J. Disentangling hippocampal and amygdala contribution to human anxiety-like behavior. J. Neurosci. 39, 8517–8526 (2019).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  42. Mégevand, P. et al. The hippocampus and amygdala are integrators of neocortical influence: a corticocortical evoked potential study. Brain Connect. 7, 648–660 (2017).

    Article  PubMed  PubMed Central  Google Scholar 

  43. Cavanagh, J. F. & Shackman, A. J. Frontal midline theta reflects anxiety and cognitive control: meta-analytic evidence. J. Physiol. Paris 109, 3–15 (2015).

    Article  PubMed  Google Scholar 

  44. Gibson, W. S. et al. The impact of mirth-inducing ventral striatal deep brain stimulation on functional and effective connectivity. Cereb. Cortex 27, 2183–2194 (2017).

    PubMed  Google Scholar 

  45. Okun, M. S. et al. Deep brain stimulation in the internal capsule and nucleus accumbens region: responses observed during active and sham programming. J. Neurol. Neurosurg. Psychiatry 78, 310–314 (2007).

    Article  PubMed  Google Scholar 

  46. Zelmann, R. et al. CLoSES: a platform for closed-loop intracranial stimulation in humans. NeuroImage 223, 117314 (2020).

    Article  PubMed  Google Scholar 

  47. Bush, G. & Shin, L. M. The multi-source interference task: an fMRI task that reliably activates the cingulo-frontal-parietal cognitive/attention network. Nat. Protoc. 1, 308–313 (2006).

    Article  PubMed  Google Scholar 

  48. Smith, E. H. et al. Frequency-dependent representation of reinforcement-related information in the human medial and lateral prefrontal cortex. J. Neurosci. 35, 15827–15836 (2015).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  49. McTeague, L. M. et al. Identification of common neural circuit disruptions in cognitive control across psychiatric disorders. Am. J. Psychiatry 174, 676–685 (2017).

    Article  PubMed  PubMed Central  Google Scholar 

  50. Computational Psychiatry (The MIT Press, 2016).

  51. National Institute of Mental Health Strategic Plan for Research 48 (NIMH, 2020).

  52. Wu, H. et al. Closing the loop on impulsivity via nucleus accumbens delta-band activity in mice and man. Proc. Natl Acad. Sci. USA 115, 192–197 (2018).

    Article  CAS  PubMed  Google Scholar 

  53. Wu, H. et al. Brain-responsive neurostimulation for loss of control eating: early feasibility study. Neurosurgery (2020); https://doi.org/10.1093/neuros/nyaa300

  54. Martin, D. M., McClintock, S. M., Forster, J. J., Lo, T. Y. & Loo, C. K. Cognitive enhancing effects of rTMS administered to the prefrontal cortex in patients with depression: a systematic review and meta-analysis of individual task effects. Depress. Anxiety 34, 1029–1039 (2017).

    Article  PubMed  Google Scholar 

  55. Grisanzio, K. A. et al. Transdiagnostic symptom clusters and associations with brain, behavior, and daily function in mood, anxiety, and trauma disorders. JAMA Psychiatry 75, 201–209 (2017).

    Article  PubMed Central  Google Scholar 

  56. Inzlicht, M., Shenhav, A. & Olivola, C. Y. The effort paradox: effort is both costly and valued. Trends Cogn. Sci. 22, 337–349 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  57. Klein, E. et al. Brain-computer interface-based control of closed-loop brain stimulation: attitudes and ethical considerations. Brain Comput. Interfaces 3, 140–148 (2016).

    Article  Google Scholar 

  58. Cabrera, L. Y. et al. Authentic self and last resort: international perceptions of psychiatric neurosurgery. Cult. Med. Psychiatry https://doi.org/10.1007/s11013-020-09679-1 (2020).

  59. Goering, S., Klein, E., Dougherty, D. D. & Widge, A. S. Staying in the loop: relational agency and identity in next-generation DBS for psychiatry. AJOB Neurosci. 8, 59–70 (2017).

    Article  Google Scholar 

  60. Conrad, E. C., Humphries, S. & Chatterjee, A. Attitudes toward cognitive enhancement: the role of metaphor and context. AJOB Neurosci. 10, 35–47 (2019).

    Article  PubMed  Google Scholar 

  61. Bick, S. K. et al. Caudate stimulation enhances learning. Brain J. Neurol. 142, 2930–2937 (2019).

    Article  Google Scholar 

  62. Prerau, M. J. et al. Characterizing learning by simultaneous analysis of continuous and binary measures of performance. J. Neurophysiol. 102, 3060–3072 (2009).

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  63. Paulk, A. C. et al. Bidirectional modulation of human emotional conflict resolution using intracranial stimulation. Preprint at bioRxiv https://doi.org/10.1101/825893 (2019).

  64. Sani, O. G. et al. Mood variations decoded from multi-site intracranial human brain activity. Nat. Biotechnol. 36, 954–961 (2018).

    Article  CAS  PubMed  Google Scholar 

  65. Faul, F., Erdfelder, E., Buchner, A. & Lang, A.-G. Statistical power analyses using G*Power 3.1: tests for correlation and regression analyses. Behav. Res. Methods 41, 1149–1160 (2009).

    Article  PubMed  Google Scholar 

  66. González-Villar, A. J. & Carrillo-de-la-Peña, M. T. Brain electrical activity signatures during performance of the Multisource Interference Task. Psychophysiology 54, 874–881 (2017).

    Article  PubMed  Google Scholar 

  67. Kleiner, M., Brainard, D. & Pelli, D. What’s new in Psychtoolbox-3. Perception 36, 1–16 (2007).

    Google Scholar 

  68. Dykstra, A. R. et al. Individualized localization and cortical surface-based registration of intracranial electrodes. NeuroImage 59, 3563–3570 (2012).

    Article  PubMed  Google Scholar 

  69. LaPlante, R. et al. The interactive electrode localization utility: software for automatic sorting and labeling of intracranial subdural electrodes. Int. J. Comput. Assist. Radiol. Surg. 12, 1829–1837 (2017).

    Article  PubMed  Google Scholar 

  70. Widge, A. S. et al. Predictors of hypomania during ventral capsule/ventral striatum deep brain stimulation. J. Neuropsychiatry Clin. Neurosci. 28, 38–44 (2015).

    Article  PubMed  PubMed Central  Google Scholar 

  71. Basu, I. et al. A neural mass model to predict electrical stimulation evoked responses in human and non-human primate brain. J. Neural Eng. 15, 066012 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  72. Basu, I. et al. Consistent linear and non-linear responses to invasive electrical brain stimulation across individuals and primate species with implanted electrodes. Brain Stimul. 12, 877–892 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  73. Yousefi, A. et al. Decoding hidden cognitive states from behavior and physiology using a Bayesian approach. Neural Comput. 31, 1751–1788 (2019).

    Article  PubMed  Google Scholar 

  74. Yousefi, A. et al. COMPASS: an open-source, general-purpose software toolkit for computational psychiatry. Front. Neurosci. 12, 957 (2019).

    Article  PubMed  PubMed Central  Google Scholar 

  75. Vaskov, A. K. et al. Cortical decoding of individual finger group motions using ReFIT Kalman filter. Front. Neurosci. 12, 751 (2018).

    Article  PubMed  PubMed Central  Google Scholar 

  76. Ratcliff, R. & McKoon, G. The diffusion decision model: theory and data for two-choice decision tasks. Neural Comput. 20, 873–922 (2008).

    Article  PubMed  PubMed Central  Google Scholar 

  77. Palmer, E. M., Horowitz, T. S., Torralba, A. & Wolfe, J. M. What are the shapes of response time distributions in visual search? J. Exp. Psychol. Hum. Percept. Perform. 37, 58–71 (2011).

    Article  PubMed  PubMed Central  Google Scholar 

  78. Oostenveld, R., Fries, P., Maris, E. & Schoffelen, J.-M. FieldTrip: open source software for advanced analysis of MEG, EEG, and invasive electrophysiological data. Comput. Intell. Neurosci. https://doi.org/10.1155/2011/156869 (2011).

  79. Bastos, A. M. & Schoffelen, J.-M. A tutorial review of functional connectivity analysis methods and their interpretational pitfalls. Front. Syst. Neurosci. 9, 175 (2015).

    PubMed  Google Scholar 

  80. Janca, R. et al. Detection of interictal epileptiform discharges using signal envelope distribution modelling: application to epileptic and non-epileptic intracranial recordings. Brain Topogr. 28, 172–183 (2015).

    Article  PubMed  Google Scholar 

  81. Cohen, M. X. & Donner, T. H. Midfrontal conflict-related theta-band power reflects neural oscillations that predict behavior. J. Neurophysiol. 110, 2752–2763 (2013).

    Article  PubMed  Google Scholar 

  82. Skarpaas, T. L., Jarosiewicz, B. & Morrell, M. J. Brain-responsive neurostimulation for epilepsy (RNS® System). Epilepsy Res. 153, 68–70 (2019).

    Article  PubMed  Google Scholar 

  83. Stanslaski, S. et al. Design and validation of a fully implantable, chronic, closed-loop neuromodulation device with concurrent sensing and stimulation. IEEE Trans. Neural Syst. Rehabil. Eng. 20, 410–421 (2012).

    Article  PubMed  Google Scholar 

Download references

Acknowledgements

We thank A. Afzal, G. Belok, K. Farnes, J. Felicione, R. Franklin, A. Gilmour, A. Gosai, M. Moran, M. Robertson, C. Salthouse, D. Vallejo-Lopez and S. Zorowitz for technical assistance with data collection and the research participants, without whose generous help none of this would have been possible. This work was supported by grants from the Defense Advanced Research Projects Agency (DARPA) under Cooperative Agreement Number W911NF-14-2-0045 issued by the Army Research Organization (ARO) contracting office in support of DARPA’s SUBNETS Program, the National Institutes of Health (UH3NS100548, R01MH111917, R01MH086400, R01DA026297, R01EY017658, K24NS088568), Ellison Foundation, Tiny Blue Dot Foundation, MGH Executive Council on Research, OneMind Institute, and the MnDRIVE and Medical Discovery Team-Addictions initiatives at the University of Minnesota. The views, opinions and findings expressed are those of the authors. They should not be interpreted as representing the official views or policies of the Department of Defense, Department of Health and Human Services, any other branch of the US Government, or any other funding entity.

Author information

Authors and Affiliations

Authors

Contributions

A.S.W., D.D.D., E.N.E. and S.S.C. designed the study. I.B., A.Y., B.C., R.Z. and U.T.E. designed key software and tools required for data collection. K.K.E. and T.D. selected the psychometric scales administered to participants and provided unpublished data related to norming of those questionnaires. E.N.E. and G.R.C. performed all surgical procedures. A.S.W., I.B., B.C., R.Z., A.C.P., S.S.C. and D.S.W. collected data with participants during acute seizure monitoring. A.S.W., I.B., A.Y., A.C.P. and N.P. analysed data. I.B. and A.S.W. wrote the paper, with substantial inputs from A.Y., R.Z., A.C.P. and S.S.C. All authors had opportunities for critical input into and revision of the submitted manuscript, and approved its submission.

Corresponding author

Correspondence to Alik S. Widge.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Peer review information Nature Biomedical Engineering thanks Edward Chang, Philip Star, Peter Tass and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Extended data

Extended Data Fig. 1 iEEG Recording montage.

Example recording montage from a single participant, with cortical parcellation overlaid. Electrode shanks represented by the grey dotted lines access a broad network covering multiple prefrontal structures, superficial and mesial temporal lobe, and striatum/internal capsule.

Extended Data Fig. 2 Accuracy results.

Accuracy during different stimulation experiments, for A) open-loop and B) closed-loop capsular stimulation. Boxes show the mean and confidence intervals for accuracy with stimulation at each site. Colours indicate stimulation sites as in the main text. The p-value above each bar represents a binomial exact test of accuracy compared to the non-stimulated baseline condition, with Benjamini-Hochberg false discovery rate correction. All accuracies are above 95%, with accuracy during stimulated blocks being very slightly higher in most cases. No results exceed chance significance. We did not have open- and closed-loop data from the same participants. To compare the CL and OL conditions, we therefore compared their accuracies across participants with a Fisher exact test for each of the three stimulation sites (L Dorsal, R Ventral, R Dorsal) that were used in both conditions. L Dorsal: p = 0.645. R Ventral: p = 0.440. R Dorsal: p = 0.655. These provide no evidence for a difference between OL and CL conditions. These results do not support a change in accuracy with any stimulation type. That is, the observed decrease in reaction times is a true performance improvement, not a shift along a speed-accuracy tradeoff. We were unable to analyse accuracy in the GLME framework because the differences between stimulation sites are so small as to make the models non-identifiable in all cases.

Extended Data Fig. 3 Cortical response to internal capsule stimulation.

Topographic structure of the internal capsule yields differential cortical effects from stimulation at different capsular sites. Before task-linked stimulation, we performed safety/perceptibility testing, where we repeatedly stimulated each potential site with brief 130 Hz pulse trains (see Methods). Each of those trains created an evoked response potential (ERP) in various cortical regions. For each participant, we collected all sEEG channels that were localized to grey matter of DLPFC or ACC. We then quantified the post-train ERP as the sum of the area under its polyphasic curve (AUC). We limited this analysis to channels ipsilateral to the site of stimulation. Each marker represents the mean log(AUC) in one participant. Boxes show the mean and confidence intervals for the ERP AUC from stimulation at each site. The stimulation sites that were more effective behaviorally produced the largest ERPs in these cognitive-control-associated regions, with right dorsal stimulation having the largest effects. (p-values represent t-test on the regression coefficients of a log-normal GLM, that is the same analysis used in main text Fig. 2). In the left hemisphere, dorsal stimulation produced larger responses than ventral stimulation, but this did not reach statistical significance given the small number of trials (5 test trains per participant). These results are consistent with the known topography of the internal capsule, where fibers that connect DLPFC and ACC to thalamus run in the dorsal-most part of the anterior limb, that is in close proximity to our chosen dorsal electrodes.

Extended Data Fig. 4 Open-loop and closed-loop effects in manifest data.

Effect of open-loop and closed-loop capsular stimulation on A) reaction time (RT) and B) Conflict related RT. Conflict related RT is calculated as the residual reaction time after subtracting the mean reaction time of the congruent trials in the same block, that is it has an expected value of 0 ms on non-conflict trials. We consider it as the closest raw/manifest data analogue of xconflict. We note, however, that both of these manifest RT variables include the Gaussian noise that is removed by the state-space filtering that produces xbase and xconflict. As such, the data in this figure are by definition noisier, and the analysis has lower statistical power. This leads to smaller effects in the open-loop results compared to main text Fig. 3. Closed-loop stimulation of the right dorsal internal capsule (our most effective open-loop intervention) was more effective than its open loop counterpart at reducing raw RT (the counterpart of xbase). Consistent with the specificity illustrated in main text Fig. 4 C, there was no advantage for closed-loop stimulation on the conflict-specific RT (the counterpart of xconflict). All formatting and graphical elements follow the conventions of main text Fig. 4.

Supplementary information

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Basu, I., Yousefi, A., Crocker, B. et al. Closed-loop enhancement and neural decoding of cognitive control in humans. Nat. Biomed. Eng 7, 576–588 (2023). https://doi.org/10.1038/s41551-021-00804-y

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1038/s41551-021-00804-y

This article is cited by

Search

Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing