Sousa BMD, de Oliveira EF, Beraldo IJDS, Polanczyk RS, Leite JP, Lopes-Aguiar C. An open-source, ready-to-use and validated ripple detector plugin for the Open Ephys GUI.
J Neural Eng 2022;
19. [PMID:
35905709 DOI:
10.1088/1741-2552/ac857b]
[Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 04/08/2022] [Accepted: 07/29/2022] [Indexed: 11/11/2022]
Abstract
OBJECTIVE
Sharp wave-ripples (SWRs, 100-250 Hz) are oscillatory events extracellularly recorded in the CA1 subfield of the hippocampus during sleep and quiet wakefulness. Many studies employed closed-loop strategies to either detect and abolish SWRs within the hippocampus or manipulate other relevant areas upon ripple detection. However, the code and schematics necessary to replicate the detection system are not always available, which hinders the reproducibility of experiments among different research groups. Furthermore, information about performance is not usually reported. Here, we sought to provide an open-source, validated ripple detector for the scientific community.
APPROACH
We developed and validated a ripple detection plugin integrated into the Open Ephys GUI. It contains a built-in movement detector based on accelerometer or electromyogram data that prevents false ripple events (due to chewing, grooming, or moving, for instance) from triggering the stimulation/manipulation device.
MAIN RESULTS
To determine the accuracy of the detection algorithm, we first carried out simulations in Matlab with real ripple recordings. Using a specific combination of detection parameters (amplitude threshold of 5 standard deviations above the mean, time threshold of 10 ms, and RMS block size of 7 samples), we obtained a 97% true positive rate and 2.48 false positives per minute. Next, an Open Ephys plugin based on the same detection algorithm was developed, and a closed-loop system was set up to evaluate the round trip (ripple onset-to-stimulation) latency over synthetic data. The lowest latency obtained was 34.5 ± 0.5 ms. The embedded movement monitoring was effective in reducing false positives and the plugin's flexibility to detect pathological events was also verified.
SIGNIFICANCE
Besides contributing to increased reproducibility, we anticipate that the developed ripple detector plugin will be helpful for many closed-loop applications in the field of systems neuroscience.
Collapse