Skip to main content
bioRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search
New Results

BRAND: A platform for closed-loop experiments with deep network models

View ORCID ProfileYahia H. Ali, View ORCID ProfileKevin Bodkin, View ORCID ProfileMattia Rigotti-Thompson, Kushant Patel, View ORCID ProfileNicholas S. Card, View ORCID ProfileBareesh Bhaduri, View ORCID ProfileSamuel R. Nason-Tomaszewski, View ORCID ProfileDomenick M. Mifsud, View ORCID ProfileXianda Hou, View ORCID ProfileClaire Nicolas, View ORCID ProfileShane Allcroft, View ORCID ProfileLeigh R. Hochberg, View ORCID ProfileNicholas Au Yong, View ORCID ProfileSergey D. Stavisky, View ORCID ProfileLee E. Miller, View ORCID ProfileDavid M. Brandman, View ORCID ProfileChethan Pandarinath
doi: https://doi.org/10.1101/2023.08.08.552473
Yahia H. Ali
1Wallace H. Coulter Department of Biomedical Engineering, Emory University and Georgia Institute of Technology, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Yahia H. Ali
Kevin Bodkin
2Department of Neuroscience, Northwestern University, Chicago, IL, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Kevin Bodkin
Mattia Rigotti-Thompson
1Wallace H. Coulter Department of Biomedical Engineering, Emory University and Georgia Institute of Technology, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Mattia Rigotti-Thompson
Kushant Patel
7Department of Neurological Surgery, University of California, Davis, CA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Nicholas S. Card
7Department of Neurological Surgery, University of California, Davis, CA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Nicholas S. Card
Bareesh Bhaduri
1Wallace H. Coulter Department of Biomedical Engineering, Emory University and Georgia Institute of Technology, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Bareesh Bhaduri
Samuel R. Nason-Tomaszewski
1Wallace H. Coulter Department of Biomedical Engineering, Emory University and Georgia Institute of Technology, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Samuel R. Nason-Tomaszewski
Domenick M. Mifsud
1Wallace H. Coulter Department of Biomedical Engineering, Emory University and Georgia Institute of Technology, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Domenick M. Mifsud
Xianda Hou
7Department of Neurological Surgery, University of California, Davis, CA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Xianda Hou
Claire Nicolas
8Massachusetts General Hospital, MA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Claire Nicolas
Shane Allcroft
9Brown University, RI, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Shane Allcroft
Leigh R. Hochberg
8Massachusetts General Hospital, MA, USA
9Brown University, RI, USA
10Harvard Medical School, MA, USA
11Department of Veterans Affairs Medical Center, RI, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Leigh R. Hochberg
Nicholas Au Yong
6Department of Neurosurgery, Emory University, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Nicholas Au Yong
Sergey D. Stavisky
7Department of Neurological Surgery, University of California, Davis, CA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Sergey D. Stavisky
Lee E. Miller
2Department of Neuroscience, Northwestern University, Chicago, IL, USA
3Department of Biomedical Engineering, Northwestern University, Evanston, IL, USA
4Department of Physical Medicine and Rehabilitation, Northwestern University, Chicago, IL, USA
5Shirley Ryan AbilityLab, Chicago, IL, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Lee E. Miller
David M. Brandman
7Department of Neurological Surgery, University of California, Davis, CA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for David M. Brandman
Chethan Pandarinath
1Wallace H. Coulter Department of Biomedical Engineering, Emory University and Georgia Institute of Technology, Atlanta, GA, USA
6Department of Neurosurgery, Emory University, Atlanta, GA, USA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Chethan Pandarinath
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Artificial neural networks (ANNs) are state-of-the-art tools for modeling and decoding neural activity, but deploying them in closed-loop experiments with tight timing constraints is challenging due to their limited support in existing real-time frameworks. Researchers need a platform that fully supports high-level languages for running ANNs (e.g., Python and Julia) while maintaining support for languages that are critical for low-latency data acquisition and processing (e.g., C and C++). To address these needs, we introduce the Backend for Realtime Asynchronous Neural Decoding (BRAND). BRAND comprises Linux processes, termed nodes, which communicate with each other in a graph via streams of data. Its asynchronous design allows for acquisition, control, and analysis to be executed in parallel on streams of data that may operate at different timescales. BRAND uses Redis to send data between nodes, which enables fast inter-process communication and supports 54 different programming languages. Thus, developers can easily deploy existing ANN models in BRAND with minimal implementation changes. In our tests, BRAND achieved <600 microsecond latency between processes when sending large quantities of data (1024 channels of 30 kHz neural data in 1-millisecond chunks). BRAND runs a brain-computer interface with a recurrent neural network (RNN) decoder with less than 8 milliseconds of latency from neural data input to decoder prediction. In a real-world demonstration of the system, participant T11 in the BrainGate2 clinical trial performed a standard cursor control task, in which 30 kHz signal processing, RNN decoding, task control, and graphics were all executed in BRAND. This system also supports real-time inference with complex latent variable models like Latent Factor Analysis via Dynamical Systems. By providing a framework that is fast, modular, and language-agnostic, BRAND lowers the barriers to integrating the latest tools in neuroscience and machine learning into closed-loop experiments.

Competing Interest Statement

The MGH Translational Research Center has clinical research support agreements with Neuralink, Synchron, Reach Neuro, Axoft, and Precision Neuro, for which LRH provides consultative input. MGH is a subcontractor on an NIH SBIR with Paradromics. CP is a consultant for Synchron and Meta (Reality Labs). SDS is an inventor on intellectual property licensed by Stanford University to Blackrock Neurotech and Neuralink Corp. These entities did not support this work, have a role in the study or have any competing interests related to this work. The remaining authors declare no competing interests.

Footnotes

  • https://github.com/brandbci/brand

Copyright 
The copyright holder for this preprint is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. All rights reserved. No reuse allowed without permission.
Back to top
PreviousNext
Posted August 12, 2023.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about bioRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
BRAND: A platform for closed-loop experiments with deep network models
(Your Name) has forwarded a page to you from bioRxiv
(Your Name) thought you would like to see this page from the bioRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
BRAND: A platform for closed-loop experiments with deep network models
Yahia H. Ali, Kevin Bodkin, Mattia Rigotti-Thompson, Kushant Patel, Nicholas S. Card, Bareesh Bhaduri, Samuel R. Nason-Tomaszewski, Domenick M. Mifsud, Xianda Hou, Claire Nicolas, Shane Allcroft, Leigh R. Hochberg, Nicholas Au Yong, Sergey D. Stavisky, Lee E. Miller, David M. Brandman, Chethan Pandarinath
bioRxiv 2023.08.08.552473; doi: https://doi.org/10.1101/2023.08.08.552473
Reddit logo Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
BRAND: A platform for closed-loop experiments with deep network models
Yahia H. Ali, Kevin Bodkin, Mattia Rigotti-Thompson, Kushant Patel, Nicholas S. Card, Bareesh Bhaduri, Samuel R. Nason-Tomaszewski, Domenick M. Mifsud, Xianda Hou, Claire Nicolas, Shane Allcroft, Leigh R. Hochberg, Nicholas Au Yong, Sergey D. Stavisky, Lee E. Miller, David M. Brandman, Chethan Pandarinath
bioRxiv 2023.08.08.552473; doi: https://doi.org/10.1101/2023.08.08.552473

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Neuroscience
Subject Areas
All Articles
  • Animal Behavior and Cognition (4665)
  • Biochemistry (10324)
  • Bioengineering (7649)
  • Bioinformatics (26269)
  • Biophysics (13487)
  • Cancer Biology (10656)
  • Cell Biology (15385)
  • Clinical Trials (138)
  • Developmental Biology (8474)
  • Ecology (12789)
  • Epidemiology (2067)
  • Evolutionary Biology (16810)
  • Genetics (11375)
  • Genomics (15441)
  • Immunology (10589)
  • Microbiology (25111)
  • Molecular Biology (10182)
  • Neuroscience (54283)
  • Paleontology (399)
  • Pathology (1663)
  • Pharmacology and Toxicology (2885)
  • Physiology (4329)
  • Plant Biology (9218)
  • Scientific Communication and Education (1584)
  • Synthetic Biology (2548)
  • Systems Biology (6766)
  • Zoology (1459)