Analysis of an open source, closed-loop, realtime system for hippocampal sharp-wave ripple disruption
Related Experiment Video
Updated: Feb 1, 2026

Open-Source Real-Time Closed-Loop Electrical Threshold Tracking for Translational Pain Research
Published on: April 21, 2023
Shayok Dutta1, Etienne Ackermann1, Caleb Kemere1,2
1Department of Electrical and Computer Engineering, Rice University, Houston, TX, United States of America.
Objective:
The ability to modulate neural activity in a closed-loop fashion enables causal tests of hypotheses which link dynamically-changing neural circuits to specific behavioral functions. One such dynamically-changing neural circuit is the hippocampus, in which momentary sharp-wave ripple (SWR) events-≈ 100 ms periods of large 150-250 Hz oscillations-have been linked to specific mnemonic functions via selective closed-loop perturbation. The limited duration of SWR means that the latency in systems used for closed-loop interaction is of significant consequence compared to other longer-lasting circuit states. While closed-loop SWR perturbation is becoming more wide-spread, the performance trade-offs involved in building a SWR disruption system have not been explored, limiting the design and interpretation of paradigms involving ripple disruption.
Approach:
We developed and evaluated a low-latency closed-loop SWR detection system implemented as a module to an open-source neural data acquisition software suite capable of interfacing with two separate data acquisition hardware platforms. We first use synthetic data to explore the parameter space of our detection algorithm, then proceed to quantify the realtime in vivo performance and limitations of our system.
Main Results:
We evaluate the realtime system performance of two data acquisition platforms, one using USB and one using ethernet for communication. We report that signal detection latency decomposes into a data acquisition component of 7.5-13.8 ms and 1.35-2.6 ms for USB and ethernet hardware respectively, and an algorithmic component which varies depending on the threshold parameter. Using ethernet acquisition hardware, we report that an algorithmic latency in the range of ≈20-66 ms can be achieved while maintaining <10 false detections per minute, and that these values are highly dependent upon algorithmic parameter space trade-offs.
Significance:
By characterizing this system in detail, we establish a framework for analyzing other closed-loop neural interfacing systems. Thus, we anticipate this modular, open-source, realtime system will facilitate a wide range of carefully-designed causal closed-loop experiments.
Related Concept Videos
Open and closed-loop control systems
An open-loop control system operates without feedback from the output. It consists of two primary elements: the controller and the controlled process. The controller receives an input signal...
Nodal Analysis with Voltage Sources
Consider a circuit that contains four resistors and two voltage sources, as shown in Figure 1. One of these voltage sources is connected between a...
Mesh Analysis with Current Sources
Current Source in One Mesh: The analysis process is straightforward when a current source is found in only one mesh within the circuit. Mesh currents are assigned as usual, with the mesh containing the current source excluded from the analysis. Kirchhoff's voltage law...
The Wave Nature of Light
Feedback Loops
Close Relationships and Culture

