Skip to main content

Main menu

  • HOME
  • CONTENT
    • Early Release
    • Featured
    • Current Issue
    • Issue Archive
    • Blog
    • Collections
    • Podcast
  • TOPICS
    • Cognition and Behavior
    • Development
    • Disorders of the Nervous System
    • History, Teaching and Public Awareness
    • Integrative Systems
    • Neuronal Excitability
    • Novel Tools and Methods
    • Sensory and Motor Systems
  • ALERTS
  • FOR AUTHORS
  • ABOUT
    • Overview
    • Editorial Board
    • For the Media
    • Privacy Policy
    • Contact Us
    • Feedback
  • SUBMIT

User menu

Search

  • Advanced search
eNeuro

eNeuro

Advanced Search

 

  • HOME
  • CONTENT
    • Early Release
    • Featured
    • Current Issue
    • Issue Archive
    • Blog
    • Collections
    • Podcast
  • TOPICS
    • Cognition and Behavior
    • Development
    • Disorders of the Nervous System
    • History, Teaching and Public Awareness
    • Integrative Systems
    • Neuronal Excitability
    • Novel Tools and Methods
    • Sensory and Motor Systems
  • ALERTS
  • FOR AUTHORS
  • ABOUT
    • Overview
    • Editorial Board
    • For the Media
    • Privacy Policy
    • Contact Us
    • Feedback
  • SUBMIT
PreviousNext
Research ArticleOpbox: Open Source Tools and Methods, Novel Tools and Methods

OpBox: Open Source Tools for Simultaneous EEG and EMG Acquisition from Multiple Subjects

Eyal Y. Kimchi, Brian F. Coughlin, Benjamin E. Shanahan, Giovanni Piantoni, John Pezaris and Sydney S. Cash
eNeuro 15 October 2020, 7 (5) ENEURO.0212-20.2020; DOI: https://doi.org/10.1523/ENEURO.0212-20.2020
Eyal Y. Kimchi
1Department of Neurology, Massachusetts General Hospital, Boston, MA, 02114
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Eyal Y. Kimchi
Brian F. Coughlin
1Department of Neurology, Massachusetts General Hospital, Boston, MA, 02114
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Benjamin E. Shanahan
1Department of Neurology, Massachusetts General Hospital, Boston, MA, 02114
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Giovanni Piantoni
1Department of Neurology, Massachusetts General Hospital, Boston, MA, 02114
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Giovanni Piantoni
John Pezaris
2Department of Neurosurgery, Massachusetts General Hospital, Boston, MA, 02114
3Department of Neurosurgery, Harvard Medical School, Boston, MA, 02115
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Sydney S. Cash
1Department of Neurology, Massachusetts General Hospital, Boston, MA, 02114
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Sydney S. Cash
  • Article
  • Figures & Data
  • Info & Metrics
  • eLetters
  • PDF
Loading

Article Figures & Data

Figures

  • Tables
  • Extended Data
  • Figure1
    • Download figure
    • Open in new tab
    • Download powerpoint
  • Figure 1.
    • Download figure
    • Open in new tab
    • Download powerpoint
    Figure 1.

    Overall architecture of the OpBox system. On the leftmost are the subjects and devices that may be placed within a behavioral chamber. Arrows in the top part of the figure indicate the flow of electrophysiology (EEG and EMG) data to the amplifier, data acquisition card, and software scripts. Additional arrows indicate the ability to add behavioral and video modules as well. Pictures of modules described in this paper in detail (OpBox amplifier and MATLAB GUI) are shown above their respective nodes.

  • Figure 2.
    • Download figure
    • Open in new tab
    • Download powerpoint
    Figure 2.

    OpBox amplifier designs. A, Circuit schematic for one channel of the electrophysiology amplifier. For clarity, power connections and decoupling capacitors are not shown. B, Photograph of a four-channel amplifier PCB with all components. All channels in this four-channel amplifier share the same reference and there is an additional ground connection. C, Photograph of a three-channel amplifier PCB with all components. In this three-channel amplifier, channels 1 and 2 share a reference, while channel 3 is a separate bipolar channel. Details for B, C are as follows: Signal inputs via screw terminals for unamplified electrophysiology input signals (EEG and EMG). Single channel amplifier components. Amplifier chips are highlighted with dashed yellow outlines. Leftmost is an instrumentation amplifier (INA114, Texas Instruments) with low offset voltage (50 μV), drift (0.25 μV/°C), and high common-mode rejection (115 dB at G = 1000), set for a fixed voltage gain of 10×. The middle and rightmost chips are operational amplifiers (TLC277, Texas Instruments) with gain of 10× each, for a total system gain of 1000×. Each also implements one of two successive two pole active high-pass (0.28 Hz, Q ≈ 0.71) or low-pass (200 Hz, Q ≈ 0.71) filters in Sallen–Key configurations (6 dB/octave). Output connections for amplified signals. Four-channel amps use a single RJ45 (Ethernet) connector for all channels, three-channel amps use BNC connectors for each channel. LED indicators to check power connections and battery level for the positive and negative rails (±3V). Each power rail uses two AA batteries in series (+3 V and −3 V). Photographs in B, C were adjusted to improve contrast and remove lab logo for blind review.

  • Figure 3.
    • Download figure
    • Open in new tab
    • Download powerpoint
    Figure 3.

    Simultaneous EEG/EMG recordings from rat subjects using OpBox scripts. A, Data stream from a single subject. The largest plot shows overlaid amplified voltages from all channels (−1 to +1 V) over the past 5 s. The overlapping blue and green traces represent EEG, while the red trace is EMG from nuchal muscles. Rectangular traces in the EEG plot represent digital behavioral event markers (each color of yellow, magenta, and cyan represents a different type of behavioral event). Box number and subject ID are shown to the left of the plot. The top right of this plot shows elapsed time since the start of the recording. Below each EEG plot, a real-time FFT based power spectrum (0–100 Hz, plotted with log power on the y-axis) is shown to the left. The mean accumulated evoked potential (1-s total window length, auditory stimulus onsets are at time = 0 ms) is shown in the bottom right; y-axis is in amplified volts and the number of stimuli is indicated in the top left corner. This GUI is running in MATLAB on a Windows desktop computer. B, Full GUI window showing simultaneous acquisition from twelve subjects. Eight rats are performing an auditory Go/No-go discrimination, each with their own mean evoked potentials displayed. The last four subjects are recordings of spontaneous behavior, i.e., while not performing a task, and thus have no evoked potentials. This multisubject GUI allows the experimenter to monitor all subjects simultaneously with a consistent configuration.

  • Figure 4.
    • Download figure
    • Open in new tab
    • Download powerpoint
    Figure 4.

    Amplification of a 10-Hz test signal. A, Comparison of power spectrum density over a 5-min period, where a 10-Hz, 100-μV peak-to-peak sine wave was sent to one channel of each amplifier using a function generator and voltage divider circuit. Spectrograms were taken of the amplifier outputs using 4 s, non-overlapping windows (n = 75 windows per amplifier). Spectra are shown with shaded 95% confidence intervals. No line filters were used. Signals were also sent via an inexpensive commutator used by our lab to verify their performance. Commutators were spun by hand. B, Approximate rotational position in radians of our commutator where 0 is equivalent to the initial position. C, Raw recording of the test signal. D, Spectrogram of the signal.

  • Figure 5.
    • Download figure
    • Open in new tab
    • Download powerpoint
    Figure 5.

    High sample rate tests. OpBox and Grass amplifiers were sampled at 100 kHz via OpBox scripts in MATLAB, and the Intan amplifier was sampled at their max rate of 30 kHz using the Open Ephys GUI. A, Phase distortion from Grass and OpBox amplifiers at 5 different frequencies; 1-mV peak-to-peak sine wave signals at varying frequencies were split from a function generator and sent to one channel of the amplifier via a voltage divider as well as directly to the DAQ. Data from both inputs were sampled simultaneously at 100 kHz. Recordings were Hilbert transformed and the difference in phase angle was calculated for each frequency tested. B, Measured gain for Grass and OpBox amplifiers at each frequency. Using the same recordings, RMS values over the entire 10 s were calculated and the ratio of amplified signals versus direct to DAQ signals divided by 1000 (to match the voltage divider output) are reported for each frequency. C, Amplifier responses to a step response, a 10-s, 500-μV unipolar rectangular wave. A simulated version of the amplifier input is shown in the top plot. D, Amplifier responses to an approximate impulse response, a 1-ms, 500-μV unipolar pulse. A simulated version of the amplifier input is shown in the top plot.

  • Figure 6.
    • Download figure
    • Open in new tab
    • Download powerpoint
    Figure 6.

    Multisubject session demonstrating the ability to record electrophysiology (EEG and EMG) data from 12 subjects simultaneously. A, Combined plot of all 12 subjects’ ipsilateral EEG power spectrums. Each trace represents the mean power spectral density from one subject over 1 h of EEG recording. Traces are color coded by cohort, determined by age and whether subjects are performing a Go/No-go task or are resting. B, C, Evoked potential data from a young and aged subject, respectively, from the same session, demonstrating the consistent ability to synchronize EEG recordings with behavioral event triggers. Evoked responses shown were collected over the entire 4-h behavioral session. Each column represents a channel of EEG (ipsilateral or contralateral) or EMG. Top plots represent analog rasters for each trial, bottom plots represent the channel means, plotted with shaded SEM, although the high trial counts have reduced these intervals too much to visualize. Stimuli presentations were 1 s long and self-initiated by a nosepoke at least 100 ms in duration. Depending on task criteria, tones were 3.5, 6.5, or 12 kHz in frequency, at ∼55 dB. Time 0 s indicates tone onset, with preceding nosepoke registration at −0.1 s.

Tables

  • Figures
  • Extended Data
    • View popup
    Table 1

    Noise floor testing

    AmplifierInputs shorted
    (μV rms)
    Connected by 1 kΩ (μV rms)Connected by 10 kΩ (μV rms)Connected by 10 kΩ and 30-cm cable (μV rms)Inputs open
    (μV rms)
    OpBox A1.322 ± 0.0051.324 ± 0.0091.337 ± 0.0081.342 ± 0.0061.708 ± 0.011
    OpBox B1.282 ± 0.0061.284 ± 0.0061.297 ± 0.0061.306 ± 0.0071.896 ± 0.021
    Grass0.554 ± 0.0090.596 ± 0.0460.589 ± 0.0080.529 ± 0.01812.756 ± 0.122
    Intan2.632 ± 0.0092.708 ± 0.0463.032 ± 0.05522.107 ± 1.03413.104 ± 0.508
    • Values from noise floor testing of the different amplifiers; 5-min segments of recordings were taken from each amplifier type with differential inputs shorted using a wire, connected using different resistors, or left completely unconnected. To mimic the effect of having EEG travel via a cable in a tethered subject recording, we also connected the amplifier inputs to a 10-kΩ resistor but at the end of a 30-cm shielded two conductor cable. The shielding of the cable was grounded. Mean RMS values of these 5-min segments were calculated using 10 non-overlapping 30-s windows. Mean and SEM values are reported for each combinations of amplifier type and testing criteria; n = 10 non-overlapping 30-s windows for all table cells.

    • View popup
    Table 2

    Input impedance testing

    Amplifier1 Hz5 Hz10 Hz25 Hz50 Hz
    OpBox0.861 GΩ [0.859, 0.864]0.866 GΩ [0.861, 0.868]0.869 GΩ [0.866, 0.872]0.885 GΩ [0.883, 0.889]0.902 GΩ [0.899, 0.905]
    Grass0.100 GΩ [0.100, 0.101]0.101 GΩ [0.101, 0.101]0.102 GΩ [0.102, 0.103]0.116 GΩ [0.116, 0.116]0.204 GΩ [0.204, 0.205]
    Intan2.832 GΩ [1.926, 4.915]2.301 GΩ [1.570, 2.861]1.842 GΩ [1.775, 1.888]1.391 GΩ [1.324, 1.471]0.959 GΩ [0.901, 1.024]
    • Input impedance values for each amplifier at various EEG relevant frequencies. Two 3-min recordings were taken of sine wave signals, once using a 0-Ω upper arm resistor (wire) and once using a precision 10-MΩ resistor. Recordings were divided into 20 segments, and the RMS values were calculated for each segment. Ratios between RMS values using the different resistors were used to calculate the input impedances. Data are displayed as median [interquartile range].

Extended Data

  • Figures
  • Tables
  • Extended Data 1

    PCB designs: amplifier PCB design files ready to be sent out for fabrication or modified to fit customized specifications. How to build + parts list: a document file containing detailed instructions for constructing the OpBox system, separated by component, with a spreadsheet of all parts used in the process of building the amplifier. Software scripts: MATLAB scripts necessary for running behavioral tasks and recording behavioral/physiological data. Includes example CSV spreadsheet files (InfoSubjects + InfoBoxes) and instructions for use. Download Extended Data 1, ZIP file.

Back to top

In this issue

eneuro: 7 (5)
eNeuro
Vol. 7, Issue 5
September/October 2020
  • Table of Contents
  • Index by author
Email

Thank you for sharing this eNeuro article.

NOTE: We request your email address only to inform the recipient that it was you who recommended this article, and that it is not junk mail. We do not retain these email addresses.

Enter multiple addresses on separate lines or separate them with commas.
OpBox: Open Source Tools for Simultaneous EEG and EMG Acquisition from Multiple Subjects
(Your Name) has forwarded a page to you from eNeuro
(Your Name) thought you would be interested in this article in eNeuro.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Print
View Full Page PDF
Citation Tools
OpBox: Open Source Tools for Simultaneous EEG and EMG Acquisition from Multiple Subjects
Eyal Y. Kimchi, Brian F. Coughlin, Benjamin E. Shanahan, Giovanni Piantoni, John Pezaris, Sydney S. Cash
eNeuro 15 October 2020, 7 (5) ENEURO.0212-20.2020; DOI: 10.1523/ENEURO.0212-20.2020

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
Respond to this article
Share
OpBox: Open Source Tools for Simultaneous EEG and EMG Acquisition from Multiple Subjects
Eyal Y. Kimchi, Brian F. Coughlin, Benjamin E. Shanahan, Giovanni Piantoni, John Pezaris, Sydney S. Cash
eNeuro 15 October 2020, 7 (5) ENEURO.0212-20.2020; DOI: 10.1523/ENEURO.0212-20.2020
Reddit logo Twitter logo Facebook logo Mendeley logo
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Jump to section

  • Article
    • Visual Abstract
    • Abstract
    • Significance Statement
    • Introduction
    • Materials and Methods
    • Results
    • Discussion
    • Acknowledgments
    • Footnotes
    • References
    • Synthesis
    • Author Response
  • Figures & Data
  • Info & Metrics
  • eLetters
  • PDF

Keywords

  • amplifier
  • EEG
  • electrophysiology
  • EMG
  • open source
  • rodent

Responses to this article

Respond to this article

Jump to comment:

No eLetters have been published for this article.

Related Articles

Cited By...

More in this TOC Section

Show more Opbox: Open Source Tools and Methods

Subjects

  • Novel Tools and Methods
  • Open Source Tools and Methods

  • Home
  • Alerts
  • Visit Society for Neuroscience on Facebook
  • Follow Society for Neuroscience on Twitter
  • Follow Society for Neuroscience on LinkedIn
  • Visit Society for Neuroscience on Youtube
  • Follow our RSS feeds

Content

  • Early Release
  • Current Issue
  • Latest Articles
  • Issue Archive
  • Blog
  • Browse by Topic

Information

  • For Authors
  • For the Media

About

  • About the Journal
  • Editorial Board
  • Privacy Policy
  • Contact
  • Feedback
(eNeuro logo)
(SfN logo)

Copyright © 2023 by the Society for Neuroscience.
eNeuro eISSN: 2373-2822

The ideas and opinions expressed in eNeuro do not necessarily reflect those of SfN or the eNeuro Editorial Board. Publication of an advertisement or other product mention in eNeuro should not be construed as an endorsement of the manufacturer’s claims. SfN does not assume any responsibility for any injury and/or damage to persons or property arising from or related to any use of any material contained in eNeuro.