[Paper Review] An embedded system for real-time feedback neuroscience experiments
This paper presents a low-cost, reconfigurable embedded system built on the Terasic DE2i-150 FPGA and Intel Atom platform that enables hard real-time data acquisition and synchronous stimulus delivery for in vivo neuroscience experiments. It achieves 1μs timestamp precision for neural spikes and supports real-time wireless visualization of raster plots via HTML5 and Elm-based web clients, demonstrating feasibility for closed-loop neuroscience experiments with high flexibility and educational applicability.
A complete data acquisition and signal output control system for synchronous stimuli generation, geared towards in vivo neuroscience experiments, was developed using the Terasic DE2i-150 board. All emotions and thoughts are an emergent property of the chemical and electrical activity of neurons. Most of these cells are regarded as excitable cells (spiking neurons), which produce temporally localized electric patterns (spikes). Researchers usually consider that only the instant of occurrence (timestamp) of these spikes encodes information. Registering neural activity evoked by stimuli demands timing determinism and data storage capabilities that cannot be met without dedicated hardware and a hard real-time operational system (RTOS). Indeed, research in neuroscience usually requires dedicated electronic instrumentation for studies in neural coding, brain machine interfaces and closed loop in vivo or in vitro experiments. We developed a complete embedded system solution consisting of a hardware/software co-design with the Intel Atom processor running a free RTOS and a FPGA communicating via a PCIe-to-Avalon bridge. Our system is capable of registering input event timestamps with 1μs precision and digitally generating stimuli output in hard real-time. The whole system is controlled by a Linux-based Graphical User Interface (GUI). Collected results are simultaneously saved in a local file and broadcasted wirelessly to mobile device web-browsers in an user-friendly graphic format, enhanced by HTML5 technology. The developed system is low-cost and highly configurable, enabling various neuroscience experimental setups, while the commercial off-the-shelf systems have low availability and are less flexible to adapt to specific experimental configurations.
Motivation & Objective
- To develop a low-cost, reconfigurable embedded system for real-time neuroscience experiments requiring precise spike timestamping and synchronous stimulus generation.
- To overcome limitations of commercial systems, which are expensive, inflexible, and often lack hard real-time capabilities for closed-loop experiments.
- To enable in vivo and in vitro neuroscience research with customizable, portable, and extensible instrumentation suitable for both research and educational use.
- To implement a hardware/software co-design that ensures timing determinism using an RTOS and PCIe-to-Avalon bridge for FPGA integration.
- To provide real-time, web-based visualization of neural spike data on mobile and local devices using modern web technologies like HTML5 and Elm.
Proposed method
- The system uses the Terasic DE2i-150 board with an Intel Atom processor running a free RTOS and an Altera Cyclone IV FPGA connected via PCIe-to-Avalon bridge.
- Neural spike timestamps are captured with 1μs resolution using FPGA-based logic, ensuring hard real-time performance.
- Stimuli are digitally generated in real time through the FPGA, synchronized with spike detection for closed-loop experiments.
- A Linux-based GUI controls the system, with data simultaneously saved to local files and broadcasted wirelessly to web browsers.
- Real-time raster plots are rendered using two approaches: one with the Flot JavaScript library and another with a custom Elm-based FRP web client for improved performance and responsiveness.
- The system supports both real in vivo experiments (e.g., blowfly H1 neuron) and synthetic signal testing during bench validation.
Experimental results
Research questions
- RQ1Can a low-cost, embedded system achieve 1μs precision in spike timestamp acquisition suitable for real-time neuroscience feedback?
- RQ2How effectively can FPGA-accelerated hardware and real-time software co-design enable synchronous stimulus delivery and data acquisition in closed-loop experiments?
- RQ3To what extent can modern web technologies (HTML5, Elm) enable responsive, low-latency visualization of neural data on mobile and local devices?
- RQ4How does the system's flexibility and configurability compare to commercial off-the-shelf solutions in experimental neuroscience setups?
- RQ5Can such a system be effectively used in educational settings to teach real-time neuroscience experimentation?
Key findings
- The system achieved 1μs precision in spike timestamp acquisition, meeting the stringent timing requirements for neural coding and closed-loop experiments.
- The FPGA-based spike detection and stimulus generation system operated in hard real time, ensuring deterministic response within microsecond-level timing constraints.
- Wireless transmission of neural data to mobile and local web browsers enabled real-time visualization of raster plots, with the Elm-based client showing improved rendering performance over the Flot-based implementation.
- The system successfully supported in vivo experiments with the blowfly H1 neuron, demonstrating reliable detection of direction-selective spiking responses to moving visual stimuli.
- The web-based clients, including the Elm-based implementation, enabled dynamic, interactive visualization of neural spike trains and stimuli sequences, as shown in Fig. 8 and Fig. 11.
- The prototype demonstrated full system integration and real-time performance in both benchtop testing with synthetic signals and live in vivo experiments, validating its use in real neuroscience research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.