Skip to main content

Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

An electronic neuromorphic system for real-time detection of high frequency oscillations (HFO) in intracranial EEG

Abstract

The analysis of biomedical signals for clinical studies and therapeutic applications can benefit from embedded devices that can process these signals locally and in real-time. An example is the analysis of intracranial EEG (iEEG) from epilepsy patients for the detection of High Frequency Oscillations (HFO), which are a biomarker for epileptogenic brain tissue. Mixed-signal neuromorphic circuits offer the possibility of building compact and low-power neural network processing systems that can analyze data on-line in real-time. Here we present a neuromorphic system that combines a neural recording headstage with a spiking neural network (SNN) processing core on the same die for processing iEEG, and show how it can reliably detect HFO, thereby achieving state-of-the-art accuracy, sensitivity, and specificity. This is a first feasibility study towards identifying relevant features in iEEG in real-time using mixed-signal neuromorphic computing technologies.

Introduction

The amount and type of sensory data that can be recorded are continuously increasing due to the recent progress in microelectronic technology1. This data deluge calls for the development of low-power embedded edge computing technologies that can process the signals being measured locally, without requiring bulky computers or the need for internet connection and cloud servers. A promising approach that has been recently proposed to address these challenges is the one of “neuromorphic computing”2. Several innovative neuromorphic computing devices have been developed to carry out computation “at the edge”3,4,5,6,7,8. These are general purpose brain-inspired architectures that support the implementation of spiking and rate-based neural networks for solving a wide range of spatio-temporal pattern recognition problems9,10. Their in-memory computing spike-based processing nature offers a low-power and low-latency solution for simulating neural networks that overcome some of the problems that affect conventional Central Processing Unit (CPU) and Graphical Processing Unit (GPU) “von Neumann” architectures11,12.

In this paper we take this approach to the extreme and propose a very “specific purpose” neuromorphic system for bio-signal processing applications that integrates a neural recording head-stage directly with the SNN processing cores on the same die, and that uses mixed-signal subthreshold-analog and asynchronous-digital circuits in the SNN cores which directly emulate the physics of real neurons to implement faithful models of neural dynamics13,14. Besides not being able to solve a broad range of pattern recognition tasks by design, the use of subthreshold analog circuits renders the design of the neural network more challenging in terms of robustness and classification accuracy. Nonetheless, successful examples of small-scale neuromorphic systems have been recently proposed to process bio-signals, such as Electrocardiogram (ECG) or Electromyography (EMG) signals, following this approach15,16,17,18. However, these systems were suboptimal, as they required external biosignal recording, frontend devices, and data conversion interfaces. Bio-signal recording headstages typically comprise analog circuits to amplify and filter the signals being measured and can be highly diverse in specification depending on the application19. For example, neural recording headstages for experimental neuroscience target high-density recordings20,21,22,23 and minimize the circuit area requirements, while devices used for clinical studies and therapeutic applications require a small number of recording channels and the highest possible signal-to-noise ratio (SNR)24,25,26,27.

The system we propose is targeted toward the construction of a compact and low-power long-term epilepsy monitoring device that can be used to support the solution of a clinically relevant problem: Epilepsy is the most common severe neurological disease. In about one-third of patients, seizures cannot be controlled by medication. Selected patients with focal epilepsy can achieve seizure freedom if the epileptogenic zone (EZ), which is the brain volume generating the seizures, is correctly identified and surgically removed in its entirety. Presurgical and intraoperative measurement of iEEG signals is often needed to identify the EZ precisely28. High Frequency Oscillations (HFO) have been proposed as a new biomarker in iEEG to delineate the EZ25,26,27,29,30,31,32,33,34,35,36. While HFO have been historically divided into “ripples” (80–250 Hz) and “fast ripples” (FR, 250–500 Hz), detection of their co-occurrence was shown to enable the optimal prediction of postsurgical seizure freedom31. In that study, HFO were detected automatically by a software algorithm that matched the morphology of the HFO to a predefined template (Morphology Detector)31,37. An example of such an HFO is shown in Fig. 1a. While software algorithms are used for detecting HFO offline30,38, compact embedded neuromorphic systems that can record iEEGs and detect HFO online in real time, would be able to provide valuable information during surgery, and simplify the collection of statistics in long-term epilepsy monitoring39,40,41. Here we show how a simple model of a two-layer SNN that uses biologically plausible dynamics in its neuron and synapse equations, can be mapped onto the neuromorphic hardware proposed and applied to real-time online detection of HFO42. We first describe the design principles of the HFO detection architecture and its neuromorphic circuit implementation. We discuss the characteristics of the circuit blocks proposed and present the experimental results measured from the fabricated device. We then show how the neuromorphic system performs in HFO detection compared to the Morphology Detector31 on iEEG recorded from the medial temporal lobe43.

Fig. 1: Automatic HFO detection using a bio-inspired SNN.
figure1

a The pre-recorded iEEG signal in wideband, Ripple band (80–250 Hz) and Fast Ripple band (250–500 Hz). HFO stand out of the baseline in the signal. The period marked by the gray bar represents a clinically relevant HFO27,31. bd Software simulated spiking neural network (SNN). For preprocessing, the wideband EEG is filtered in Ripple band and Fast Ripple band. A baseline detection stage finds the optimum threshold that is applied in an Asynchronous Delta Modulator (ADM) which converts the signal to spikes. Signal traces are encoded by UP spikes (gray bars) and DOWN spikes (black bars), which are then fed as input into the SNN. The SNN is implemented as a two-layer spiking network of integrate and fire neurons with dynamic synapses. Each neuron in the second layer receives four inputs: two excitatory spike trains from UP channels and two inhibitory ones from DOWN channels. The parameters of the network were chosen to exhibit the relevant temporal dynamics and tune the neurons to produce output spikes in response to input spike train patterns that encode clinically relevant HFO. e, top Time-frequency spectrum of the Fast Ripple iEEG of panel a. e, bottom Firing of SNN neurons indicates the occurrence of the HFO. f Block diagram of the neuromorphic system input headstage. The headstage comprises a low noise amplifier (LNA), two configurable bandpass filters, and two ADM circuits that convert the analog waveforms into spike trains. g The spikes produced by the ADMs are sent to a multi-core array of silicon neurons that are configured to implement the desired SNN. h MRI with 7 implanted depth electrodes that sample the mesial temporal structures of a patient with drug-resistant temporal lobe epilepsy (Patient 1). i Rates of HFO detected by the neuromorphic SNN for recordings made across four nights for Patient 1. The variability of the HFO rates across intervals within a night is indicated by standard error bars. Recording channels AR1-2 and AR2-3 in the right amygdala showed the highest HFO rates which were stable over nights. Thus, the neuromorphic system would predict that a therapeutic resection, which should include the right amygdala, would achieve seizure freedom. Indeed, a resection including the right amygdala achieved seizure freedom for >1 year.

Results

Figure 1 shows how prerecorded iEEG43 was processed by the frontend headstage and the SNN multi-core neuromorphic architecture. Signals were band-passed filtered into Ripple and Fast Ripple bands (Fig. 1a, b, f). The resulting waveforms were converted into spikes using asynchronous delta modulator (ADM) circuits44,45 (Fig. 1c, f) and fed into the SNN architecture (Fig. 1d, g). Neuronal spiking signals the detection of an HFO (Fig. 1e bottom).

All stages were first simulated in software to find the optimal parameters and then validated with the hardware components. The HFO detection was validated by comparing the HFO rate across recording intervals (Fig. 1i) and with postsurgical seizure outcome31.

The neuromorphic system

An overview of the hardware neuromorphic system components is depicted in Fig. 2. The chip (Fig. 2c) was fabricated using a standard 180 nm Complementary Metal-Oxide-Semiconductor (CMOS) process. It comprises 8 input channels (headstages) responsible for the neural recording operation, band-pass filtering and conversion to spikes46, and a multicore neuromorphic processor with 4 neurosynaptic cores of 256 neurons each, which is a Dynamic Neuromorphic Asynchronous Processor (DYNAP) based on the DYNAP-SE device47. The total chip area is 99 mm2. The 8 headstages occupy 1.42 mm2 with a single headstage occupying an area of 0.15 mm2 (see Fig. 2a). The area of the four SNN cores is 77.2 mm2 with a single SNN core occupying 15 mm2. For the HFO detection task, the total average power consumption of the chip at the standard 1.8 V supply voltage was 614.3 μW. The total static power consumption of a single headstage was 7.3 μW. The conversion of filtered waveforms to spikes by the ADMs consumed on average 109.17 μW. The power required by the SNN synaptic circuits to process the spike rates produced by the ADMs was 497.82 μW, while the power required by the neurons in the second layer of the SNN to produce the output spike rates was 0.2 nW. The block diagram of the hardware system functional modules is shown in Fig. 2b. The Field Programmable Gate Array (FPGA) block on the right of the figure represents a prototyping device that is used only for characterizing the system performance. Figure 2c shows the chip photograph, and Fig. 2d represents a rendering of the prototyping Printed Circuit Board (PCB) used to host the chip.

Fig. 2: Neuromorphic electronic system overview.
figure2

a Physical layout of a single channel of the analog headstage array, including the LNA, three low-pass/band-pass filters, and four ADM signal to spike encoders. b Reduced block diagram of the neuromorphic platform. Analog signals from electrodes are fed into the input headstage that converts them into spike trains and sends them to the SNN implemented on the multi-neuron cores, via a spike routing network. The spike routing network routes the spikes within on-chip SNN and to an external FPGA device used for data logging and prototyping. The FPGA is also used for setting circuit parameters. c Chip photograph showing the 11 mm x 9 mm silicon die. d Prototyping Printed Circuit Board (PCB) used to host the chip and the infrastructure to implement the test setup. The setup is composed of a prototyping FPGA board mounted on the same PCB that hosts the chip, and of probe points to evaluate the characteristics of both input headstage and SNN multi-core network.

Figure 3 shows the details of the main circuits used in a single channel of the input headstage. In particular, the schematic diagram of the Low-Noise Amplifier (LNA) is shown in Fig. 3a. It consists of an Operational Transconductance Amplifier (OTA) with variable input Metal Insulator Metal (MIM) capacitors, Cin that can be set to 2/8/14/20 pF and a Resistor-Capacitor (RC) feedback in which the resistive elements are implemented using MOS-bipolar structures48. The MOS-bipolar pseudoresistors MPR1 and MPR2, and the capacitors Cf = 200 fF of Fig. 3a were chosen to implement a high-pass filter with a low cutoff frequency of 0.9 Hz. Similarly, the input capacitors Cin, Cf, and the transistors of the OTA were sized to produce maximum amplifier gain of approximately 40.2 dB but can be adjusted to smaller values by changing the capacitance of Cin.

Fig. 3: Schematic diagrams of the input headstage circuits.
figure3

a Variable-gain LNA using variable input capacitor array and pseudo-resistors. The gain of this stage is calculated by Cin/Cf; the use of the pseudo-resistors allows to reach small low cut-off frequencies. b Folded cascode OTA using resistive degeneration to reduce the noise influence of nMOS devices. Note that the current flowing through the biasing branch, Mb1-Mb3-Mb5-k × R1, is k times smaller than the tail branch of the amplifier. c band-pass (Tow-Thomas) filters for performing second-order filtering in both ripple and fast-ripple bands as well as the low-frequency component of the iEEG. Tunable pseudo resistors are used to adjust the filter gain, center-frequency, and band-width. The same basic structure can be used to provide both low-pass and band-pass outputs, thus is desirable in terms of design flexibility. d Asynchronous Delta Modulator (ADM) circuit to convert the analog filter outputs into spike trains. The ADM input amplifier has a gain of Cin/Cf in normal operation when Vreset is low and the feedback PMOS switch is off. As the amplified signal crosses one of the two thresholds, Vtu or Vtd, a UP or DN spike is produced by asserting the corresponding REQ signal. A 4-phase handshaking mechanism produces the corresponding ACK signal in response to the spike. Upon receiving the ACK signal, the ADM resets the amplifier input and goes back to normal operation after a refractory period determined by the value of Vrefr. The asynchronous buffers act as 4-phase handshaking interfaces that propagate the UP/DN signals to the on-chip AER spike routing network of Fig. 2.

Figure 3b shows the schematic of the OTA, which is a modified version of a standard folded-cascode topology49. The currents of the transistors in the folded branch (M5–M10) are scaled to approximately 1/6th of the currents in the original branch M1–M4. The noise generated by M5–M10 is negligible compare to that of M1–M4 due to the low current in these transistors. As a result, the total current and the total input-referred noise of the OTA was minimized.

To ensure accurate bias-current scaling, the currents of Mb2 and Mb4 in Fig. 3b were set using the bias circuit formed by Mb1, Mb3, and Mb5. The voltages Vb1 and Vb2 in the biasing circuit can be set by a programmable 6526-level integrated parameter-generator, integrated on chip50. The current sources formed by Mb1 and Mb2 were cascoded to increase their output impedance and to ensure accurate current scaling. These devices operate in strong inversion to reduce the effect of threshold voltage variations. The source-degenerated current mirrors formed by M11, M12, Mb5, and resistors R1 and k × R1 assure that the currents in M5 and M6 are a small fraction of the currents in M3 and M4. The R1 gain coefficient k was chosen at design time to be k = 8.5. Thanks to the use of this source-degenerated current source scheme, the 1/f noise in the OTA is limited mainly to the effect of the input differential pair. Therefore, the transistors of the input-differential pair were chosen to be pMOS devices and to have a large area.

The active filters implemented in our system are depicted in Fig. 3c. They comprise three operational amplifiers, configured to form a Tow-Thomas resonating architecture51. This architecture consists of a damped inverting integrator that is stabilized by R2 and cascaded with another undamped integrator, and an inverting amplifier for adjusting the loop-gain by a factor set by the ratio R6/R5. The center frequency f0 of the bandpass filter can be calculated as \({f}_{0}=1/2\pi \sqrt{R3R4C{1}^{2}}\). By choosing R3 = R4 = R, we can then simplify it to f0 = 1/2πRC1. Similarly, the gain of the filter is \(\left|{T}_{BP}\right|=R4/R1\) and its bandwidth \(BW=2\pi {f}_{0}\sqrt{R3R4}/R2\), but with our choice of resistors we can show that \(\left|{T}_{BP}\right|=R/R1\) and BW = 1/(R2C1). Therefore, this analysis shows that R is responsible for setting f0, R1 for adjusting the gain, and R2 for tuning the bandwidth. Moreover, due to the resistive range of the tunable double-PMOS pseudo resistors used in this design52, f0 was set in the sub-hundred Hertz region by choosing C1 = 10 pF.

Figure 3d shows the schematic diagram of the ADM circuit45. There are four such circuits per headstage channel. One for converting the wideband signal Vamp into spike trains; one for converting the output of the low-pass filter Vout_lowpass; and two for converting the output of the two band-pass filters Vout_bandpass. The amplifier at the input of the ADM circuit in Fig. 3d implements an adaptive feedback amplification stage with a gain set by Cin/Cf that in our design is equal to 8 when Vreset is high, and approximately zero during periods in which Vreset is low. In these periods, defined as “reset assertion” the output of the amplifier Ve is clamped to Vref, while in periods when Vreset is high, the output voltage Ve represents the amplified version of the input. The Ve signal is then sent as input to a pair of comparators that produce either “UP” or “DN” digital pulses depending if Ve is greater than Vtu or lower than Vtd. These parameters set the ADM circuit sensitivity to the amplitude of the Delta-change. The smallest values that these voltages can take is limited by the input offset of the ADM comparators (see CmpU, CmpD in Fig. 3d), which is approximately 500 μV.

Functionally, the ADM represents a Delta-modulator that quantizes the difference between the current amplitude of Ve and the amplitude of Ve at the previous reset assertion. The precise timing of the UP/DN spikes produced in this way is deemed to contain all the information about the original input signal, given that the parameters of the ADM are known53. The UP and DN spikes are used as the request signals of the asynchronous AER communication protocol54,55,56 used by the spike routing network for transmitting the spikes to the silicon neurons of the neuromorphic cores (Fig. 2). We call this event-based computation. These signals are pipelined through asynchronous buffers that locally generates ACKUP/DN to reset the ADM with every occurrence of an UP or DN event. The output of the asynchronous buffer REQUP/DN(toSNN) conveys these events to the next asynchronous stages. The bias voltage Vrefr controls the refractory period that keeps the amplifier reset and limits the maximum event rate of the circuit to reduce power consumption. The bias voltages Vtu and Vtd control the sensitivity of the ADM and the number of spikes produced per second, with smaller values producing spike trains with higher frequencies. Small Vtu and Vtd settings lead to higher power consumption and allow the faithful reconstruction of the input signal with all its frequency components. The ADM hyper parameters Vrefr, Vtu, and Vtd can therefore be optimized to achieve high reconstruction accuracy of the input signal and suppress background noise (e.g., due to high-frequency signal components), depending on the nature of the signal being processed (see Methods). All of the 32 ADM output channels are then connected to a common AER encoder which includes an AER arbiter57 used to manage the asynchronous traffic of events and convey them to the on-chip spike routing network.

Analog headstage circuit measurements

Figure 4 shows experimental results measured from the different circuits present in the input headstage. Figure 4a shows the transient response of the LNA to a prerecorded iEEG signal used as input. The signal was provided to the headstage directly via an arbitrary waveform generator programmed with unity gain and loaded with a sequence of the prerecorded iEEG data with amplitude in the mV range. We also tested the LNA with an input sine wave of 100 Hz with a 1 mV peak-to-peak swing, revealing <1% of total harmonic distortion at maximum gain, and an output swing ranging between 0.7 V and 1.4 V. To characterize the input referred noise of the LNA, we shorted input terminals of the LNA, Vin+, Vin, captured LNA output, Vamp, on a dynamic signal analyzer and divided it by the gain of the LNA, set to 100, and plotted output power spectral density (see Fig. 4b). The LNA generates a ≤100 nV/\(\sqrt{Hz}\) noise throughout the spectrum. As the 1/f noise dissipates with the increase in frequency, the LNA noise only scales down to the thermal component. Thus, the noise for the Ripple band is < 10 nV/\(\sqrt{Hz}\) and < 5 nV/\(\sqrt{Hz}\) for the Fast Ripple band. Figure 4b shows how the noise generated by the LNA is well below the pre-recorded iEEG power, throughout the full frequency spectrum.

Fig. 4: Measurements from the analog headstage.
figure4

a An iEEG sample43 and the LNA amplified output. b Noise floor of the headstage LNA and iEEG power spectral density. In the HFO range (80-250 Hz) the noise level of the LNA is below the iEEG noise floor by an order of magnitude. c Frequency response of the implemented filters in the headstage. The band-pass filters are tuned to highlight HFO frequency bands. d ADM circuit simulation response to the ripple-filtered signal. The top plot shows the analog filter output, the middle plot shows the UP spikes generated by the ADM and the bottom plot shows the DN spikes.

The LNA features a programmable gain that can be set to 20 dB, 32 dB, 36 dB, or 40 dB. It has a > 40 dB common mode rejection ratio;

it consumes 3 μW of power per channel; and it has a total bandwidth, defined as Gm/(AMCL), approximately equal to 11.1 KHz, when the capacitive load is set to CL=20 fF, the OTA transconductance to Gm=20 nS and the amplifier gain to 40 dB (see Fig. 4c).

The on-chip parameter generator can be used to set the filter frequency bands. For HFO detection, we biased the tunable pseudoresistors of the filters to achieve a cutoff frequency of 80 Hz for the low-pass filter, a range between 80 Hz and 250 Hz for the first bandpass filter, appropriate for Ripple detection, and between 250 Hz and 500 Hz for the second bandpass filter, to detect Fast Ripples (see Fig. 4c).

As we set the tail current of each single-stage OpAmp of Fig. 3c to 150 nA, each filter consumed 0.9 μW of power.

Figure 4d plots the spikes produced by the AMD circuit in response to Ripple-band data obtained from the pre-recorded iEEG measurements. We set the ADM refractory period to 300 μs, making it the longest delay, compared to those introduced by the comparator and handshaking circuits, that are typically < 100 μs. The spike-rate of the ADM can range from few hundreds of Hz to hundreds of kHz depending on the values of Vtu, Vtd, and Vrefr. Each ADM consumed 1.5 nJ of energy per spike, and had a static power dissipation of 96 nW.

System performance

The system-level performance is assessed by measuring the ability of the proposed device to correctly measure the iEEG signals, to properly encode them with spike trains, and to detect clinically relevant HFO31 via the SNN architecture.

The SNN architecture is a two-layer feed-forward network of integrate and fire neurons with dynamic synapses, i.e., synapses that produce post-synaptic currents that decay over time with first-order dynamics. The first layer of the network comprises four input neurons: the first neuron conveys the UP spikes that encode the iEEG signal filtered in Ripple band; the second neuron conveys the DN spikes derived from the same signal; the third neuron conveys the UP spikes derived from the Fast-ripple band signal, while the forth neuron conveys the DN spikes. The second layer of the network contains 256 neurons which receive spikes from all neurons of the input layer (see Fig. 5b). The current produced by the dynamic synapses of the second layer neurons decay exponentially over time at a rate set by a synapse-specific time-constant parameter. The amplitude of these currents in response to the input spikes depends on a separate weight parameter, and their polarity (positive or negative) depends on the synapse type (excitatory or inhibitory). In the network proposed, UP spikes are always sent to excitatory synapses and DN spikes to inhibitory ones. All neurons in the second layer have the same connectivity pattern as depicted in Fig. 5b with homogeneous weight values. An important aspect of the SNN network lies in the way it was configured to recognize the desired input spatio-temporal patterns: rather than following the classical Artificial Neural Network (ANN) approach of training the network by modifying the synaptic weights with a learning algorithm and using identical settings for all other parameters of synapses and neurons, we fixed the weights to constant values and chose appropriate sets of parameter distributions for the synaptic time constants and neuron leak variables. Because of the different time-constants for synapses and neurons, the neurons of the second layer produce different outputs, even though they all receive the same input spike trains.

Fig. 5: Network spiking characteristics.
figure5

a Examples of HFO that the hardware SNN detected in the iEEG of Patient 1. The periods marked by the gray bar represent clinically relevant HFO31,43. The signals in Ripple and Fast-ripple band were transformed to UP and DN spikes. These spike trains were sent to the neurons in the hardware through the RUP, RDN, FRUP and FRDN channels. The bottom panel of each example shows the raster plot of the silicon neurons. Each neuron responds to different HFO depending on the characteristics of the pattern. b The SNN architecture consist of a two-layer network of 256 integrate and fire neurons with dynamic synapses. Each neuron in the second layer receives excitatory connections from the RUP and FRUP channels, and inhibitory connections from the RDN and FRDN channels. The synaptic parameters time constants and weights are distributed randomly within a predetermined optimal range. c Hardware building blocks used for the implementations of the SNN: the DPI synapse is a "Differential-Pair Integrator'' circuit59, and the silicon neuron is an Adaptive Exponential Integrate and Fire (AdExp IF) circuit81. d HFO rates computed for Patient 1. The neurons are sorted according to their average firing rate. Only a small number of neurons fire across all the recordings, even for channels with high HFO rates (e.g., AR1-2).

The set of parameter distributions that maximized the network’s HFO detection abilities was found heuristically by analyzing the temporal characteristics of the input spike trains and choosing the relevant range of excitatory and inhibitory synapse time constants that produced spikes in the second layer only for the input signals that contained HFO as marked by the Morphology Detector31 (see Figs. 1a, 5a). This procedure was first done using software simulations with random number generators and then validated in the neuromorphic analog circuits, exploiting their device mismatch properties.

The software simulations were carried out using a behavioral-level simulation toolbox based on the neuromorphic circuit equations, that accounts for the properties of the mixed-signal circuits in the hardware SNN58.

The hardware validation of the network was done using a single core of the DYNAP-SE neuromorphic processor47, which is a previous generation chip functionally equivalent to the one proposed, implemented using the same CMOS 180 nm technology node. The 256 neurons in this core received spikes produced by the ADM circuits of the analog headstage, as described in Fig. 5c. The ADM UP spikes were sent to the excitatory synapses, implemented using a DPI circuit13,59 that produce positive currents, and DN spikes were sent to complementary versions of the circuit that produce inhibitory synaptic currents. Both excitatory and inhibitory currents were summed into the input nodes of their afferent leaky integrate-and-fire silicon neuron circuit, which produced output spikes only if both the frequency and the timing of the input spikes was appropriate (see Fig. 5c). The bias values of the excitatory and inhibitory DPI circuits and of the neuron leak circuits were set in a way to match the mean values of the software simulation parameters. All neuron and synapse circuits in the same core of the chip share global bias parameters, so nominally all excitatory synapses would have the same time-constant, all inhibitory ones would share a common inhibitory time-constant value and all neurons would share the same leak parameter value. However, as the mixed-signal analog-digital circuits that implement them are affected by device mismatch, they exhibit naturally a diversity of behaviors that implements the desired variability of responses. Therefore, in the hardware implementation of the SNN, the distribution of parameters that produce the desired different behaviors in the second layer neurons emerges naturally, by harnessing the device mismatch effects of the analog circuits used and without having to use dedicated random number generators60,61. Analysis of the data presented in Fig. 5 shows that an average number of 64 neurons were sufficient for detecting an HFO from a single channel input.

Figure 1e (bottom panel) shows an example of the activity of the hardware SNN in response to an HFO that was labeled as clinically relevant by the Morphology Detector31. The iEEG traces in the Ripple band and Fast ripple band (Fig. 1a) and the time frequency spectrum (top panel of Fig. 1e) show the HFO shortly before the SNN neurons spike in response to it (bottom panel of Fig. 1e). The delay between the beginning of the HFO and the spiking response of the silicon neurons is due to the integration time of both excitatory and inhibitory synapse circuits, which need to accumulate enough evidence for producing enough positive current to trigger the neuron to spike.

To improve classification accuracy and robustness, we adopted an ensemble technique62 by considering the response of all the 256 neurons in the network: the system is said to detect an HFO if at least one neuron in the second layer spikes in a 15 ms interval. We counted the number of HFO detected per electrode channel and computed the corresponding HFO rate (Section 4). Examples of HFO recorded from Patient 1 and detected by the hardware SNN are shown in Fig. 5a; several neurons respond within a few milliseconds after initiation of the HFO. Different HFO produce different UP and DN spike trains, which in turn lead to different sets of second layer neurons spiking. Figure 5d shows the HFO rates calculated for each electrode from the recordings of this patient. Observe that not all the neurons in the second layer respond to the HFO. Even for electrode channels with high HFO rates, a very small number of neurons fire at high rates.

The robustness of the HFO rate measured with our system can be observed in Fig. 1i, where the relative differences of HFO rates across channels in Patient 1 persisted over multiple nights. To quantify this result we performed a test-retest reliability analysis by computing the scalar product of the HFO rates across all recording intervals (0.95 in Patient 1), where the scalar product is ~1̃ for highly overlapping spatial distributions, indicating that the HFO distribution persists over intervals.

Predicting seizure outcome

In Patient 1, the electrodes were implanted in right frontal cortex (IAR, IPR), the left medial temporal lobe (AL, HL) and the right medial temporal lobe (AR, AHR, PHR). The recording channels AR1-2 and AR2-3 in the right amygdala produced the highest HFO rates persistently. We included all channels with persistently high HFO rate in the 95% percentile to define the “HFO area”. If the HFO area is included in the resection volume (RV), we would retrospectively “predict” for the patient to achieve seizure freedom. Indeed, right selective amygdalohippocampectomy in this patient achieved seizure freedom for >1 year.

We validated the system performance across the whole patient group by performing the test-retest reliability analysis of all the data. The test-retest reliability score ranges from 0.59 to 0.97 with a median value of 0.91. We compared the HFO area detected by our system with the RA. For each individual, we then retrospectively determined whether resection of the HFO area would have correctly “predicted” the postsurgical seizure outcome (Table 1). Seizure freedom (ILAE 1) was achieved in 6 of the 9 patients. To estimate the quality of our “prediction”, we classified each patient as follows: we defined as “True Negative” (TN) a patient where the HFO area was fully located inside the RV and who became seizure free; “True Positive” (TP) a patient where the HFO area was not fully located within the RV and the patient suffered from recurrent seizures; “False Negative” (FN) a patient where the HFO area was fully located within the RV but who suffered from recurrent seizures; “False Positive” (FP) a patient where the HFO area was not fully located inside the RV but who nevertheless achieved seizure freedom.

Table 1 Patient characteristics and postsurgical seizure outcome. We “predict” seizure outcome for each patient based on resection of the HFO area that was delineated by the Morphology Detector31 and the hardware SNN of our system. The hardware SNN prediction was correct in 7/9 patients.

The HFO area defined by our system was fully included in the RV in patients 1 to 6. These patients achieved seizure freedom and were therefore classified as TN. In Patients 7 and 9, the HFO area was also included in the RV but these were classified as FN since these patients did not achieve seizure freedom. The false prediction may stem either from HFO being insufficiently detected or from the epileptogenic zone being insufficiently covered by iEEG electrode contacts. In Patient 8, the HFO area was not included in the RV and the patient did not achieve seizure freedom (TP).

We finally compared the predictive power of our detector to that of the Morphology Detector31 for the individual patients (Table 1) and over the group of patients (Table 2). The overall prediction accuracy of our system across the 9 patients is comparable to that obtained by the Morphology Detector. The 100% specificity achieved by both detectors indicates that HFO analysis provides results consistent with the current surgical planning.

Table 2 Comparison of postsurgical outcome prediction between the Morphology Detector and our system. TP True Positive; TN True Negative; FP False Positive; FN False Negative; N = TP + TN + FP + FN = number of patients.

Discussion

The results presented here demonstrate the potential of neuromorphic computing for “extreme-edge” use cases; i.e., computing applications for compact embedded systems that cannot rely on internet or “cloud computing” solutions. It should be clear however, that this approach does not address general purpose neuromorphic computing classes of problems nor does it propose novel methodologies for artificial intelligence applications. It is an approach that needs to be optimized to every individual “specific purpose” use case, by reducing to the minimum necessary the amount of compute resources, to minimize power consumption. As such, this approach can not be directly compared with large-scale neuromorphic computing approaches, or state-of-the-art or deep-learning methods.

Other embedded systems and VLSI devices designed for the specific case of processing and/or classifying EEG signals have been proposed in recent years63,64,65,66. Table 3 highlights the differences between these systems and the one presented in this work. Interestingly, only two of these other designs have opted for integrating analog acquisition headstages with the computing stages for standalone operation65,66. Both of these designs have a comparable number of channels to our system; however they comprise conventional analog to digital converter designs (ADCs) that are not optimal for processing bio-signals67. Indeed analog to digital data conversion for bio-signal processing has been an active area of investigation in biomedical processing field, with increasing evidence in favor of delta encoding schemes (such as the one used in this work)68,69,70. The only design listed in Table 3 that utilizes a symbolic encoding scheme and that has been applied to iEEG is the work of Burello et al.’1963. However, this design is missing a co-integrated analog headstage and, by extension, an integrated local binary pattern encoder. Separating the signal encoding stage from the processing stage allows the implementation of sophisticated signal processing techniques and machine learning algorithms, as is evident from the works of Burello et al.63 and Feng et al.64. But using off-the shelf platforms for signal encoding, processing, or both, leads to much higher power consumption and bulky platforms that make the design of compact and portable embedded systems more challenging.

Table 3 Comparison of the hardware setup proposed with analogous state-of-the-art designs and methods.

Other full custom and low-power neural recording headstages developed in the past were optimized for very large scale arrays20,21,22,23, or for intracranial recordings49,71,72,73,74,75,76. To our knowledge, we present here the first instance of a headstage design that has the capability of adapting to numerous use cases requiring different gain factors and band selections, on the same input channel.

When comparing our neuromorphic SNN with other HFO detectors proposed in the literature35,36, several differences and commonalities become evident. As a conceptual difference, the SNN proposed here models many of the features found in biological neural processing systems, such as the temporal dynamics of the neuron and synapse elements, or the variability in their time constants, refractory periods, and synaptic weights. Our system does not store the raw input signals by design so that off-line post-hoc examination of HFO is not possible. In addition, the approach followed to determine the right set of the model parameters is radically different from the deep-learning one: rather than using arrays of identical neurons with homogeneous parameters and a learning algorithm to determine the weights of static synapses, we tuned the parameters governing the dynamics of the synapses and exploited the variability in their outputs, using ranges that are compatible with the distributions measured from the analog circuits, to create an ensemble of weak classifiers that can reliably and robustly detect HFO. The event-based nature of the hardware implementation of such model and the matched filter properties of the SNN circuits with the time constants of the signals being processed, translates into an extremely low-power (sub mW) device. These results demonstrate the feasibility of compact low-power implantable devices for long-term monitoring of the epilepsy severity. As a commonality to other non-neuromorphic off-line HFO detectors25,30,31,32,33,43 (Table 1), our system uses the detection of HFO to “predict” seizure freedom after resective epilepsy surgery in individual patients.

The simulations of the SNN not only allowed us to define the optimal architecture for HFO detection, but also gave us solutions for setting the hyperparameters of the analog headstage, such as the refractory period Vref and the threshold (Vtu and Vtd) for the signal-to-spike conversion of the ADM. The robustness of the software simulation has now been confirmed in an independent dataset of intraoperative ECoG recordings, where the exact same simulated SNN presented here was highly successful in detecting HFO - without fine tuning of parameters at all38. While mismatch effect is generally a concern in modeling hardware designs based on software simulations, we show here that the mismatch among the silicon neurons resulted in a key feature for the implementation of our SNN architecture. This advantage allowed us to generate the normal distribution of parameters without manually defining the distribution of neuronal time-constants found in simulations or requiring extra memory to allocate these values. By averaging over both time and the number of neurons recruited by the ensemble technique, the SNN network was able to achieve robust results: the accuracy obtained by the SNN is compatible with that obtained by a state-of-the-art software algorithm implemented using complex algorithms on a powerful computer31.

In the “prediction” across the patient group (Table 2), the sensitivity stands out to be very low, i.e. even after the HFO area was resected, Patients 7 and 9 suffered from recurrent seizures (FN prediction). On one hand, a FN may be due to insufficient HFO detection. On the other hand, the spatial sampling of iEEG recordings may be insufficient for localizing the EZ, i.e. seizures may originate from brain volumes where they remain undetected by the iEEG recordings. This spatial sampling restriction affects the two HFO detectors and current clinical practice all alike. Indeed, current clinical practice advised resection of brain tissue in Patients 7, 8, and 9, which nevertheless suffered from recurrent seizures postoperatively, i.e. the EZ was not removed in its entirety. Interestingly, the HFO area of the Hardware SNN might have included the correct EZ in Patient 8 (TP) while this was not the case for the Morphology detector (FN). Still, the NPV in Table 2 is the most relevant quantity for clinical purpose and it is sufficiently high for both the Morphology Detector and the Hardware SNN. Overall, the high specificity (100%) achieved with our system not only generalizes the value of the detected HFO by the SNN across different patients, but still holds true at the level of the individual patients, which is a prerequisite to guide epilepsy surgery that aims for seizure freedom.

This is a first feasibility study towards identifying relevant features in intracranial human data in real-time, on-chip, using event-based processors and spiking neural networks. By integrating on the same chip both the signal acquisition headstage and the neuromorphic multi-core processor, we developed an integrated system that can demonstrate the advantages of neuromorphic computing in clinically relevant applications. The general approach of building sensors that can convert their outputs to spikes and of interfacing spiking neural network circuits and systems on the same chip can lead to the development of a new type of “neuromorphic intelligence” sensory-processing devices for tasks that require closed-loop interaction with the environment in real-time, with low latency and low power budget. By providing “neuromorphic intelligence” to neural recording circuits the approach proposed will lead to the development of systems that can detect HFO areas directly in the operation room and improve the seizure outcome of epilepsy surgery.

Methods

Design and setup of the hardware device

The CMOS circuit simulations were carried-out using the Cadence® Virtuoso ADE XL design tools. All circuits including the headstage, the parameter generator, and the silicon neurons were designed, simulated and analyzed in analog domain. The asynchronous buffers, spike routing network and chip configuration blocks were simulated and implemented in the asynchronous digital domain. The layout of the chip was designed using the Cadence® Layout XL tool. The design rule check, layout versus schematic and post-layout extraction of the analog headstages were performed using the Calibre tool. We packaged our device using a ceramic 240-pin quadratic flat package. The package was then mounted on an in-house designed six-layer printed circuit board. The programming and debugging of the System-on-Chip (SoC) was performed using low-level software and firmware developed in collaboration with SynSense Switzerland, and implemented using the XEM7360 FPGA (Opal Kelley, USA). The pre-recorded iEEG was fed to the chip using a Picoscope 2205A MSO (Picotech, UK). All frequency-domain measurements were performed using a Hewlett-Pacard 35670A dynamic signal analyzer.

Characteristics of the SNN model

The SNN model is composed of a layer of input units, that provide the input spikes derived from the recorded and filtered input waveforms, and a layer of Integrate-and-Fire (I&F) neurons that reproduce the dynamics of neuromorphic circuits present in the chip13. The silicon neurons present in the chip reproduce the properties of Adaptive-Exponential Integrate and Fire (AdExp-I&F) neuron models77, while the synapse circuits that connect the input nodes to the AdExp-I&F neurons exhibit first-order temporal dynamics59. Unlike classical Artificial Neural Networks (ANNs) this model does not rely only on the synaptic weights to carry out it’s task: each neuron in the network can be interpreted as a non-linear temporal filter that is tuned to the specific shape of the waveform it is trying to recognize. The tuning hyper-parameters that are relevant for this operation, besides the weights, are the neuron and synapse time constants. The equations that describe the behavior or AdExp-I&F neurons are the following:

$${\tau }_{mem}\frac{d}{dt}{V}_{mem}(t)= -{V}_{mem}(t)+{I}_{syn}(t) - {v}_{ahp}(t)+f({V}_{mem})\\ {\tau }_{ahp}\frac{d}{dt}{v}_{ahp}(t)= -{v}_{ahp}(t)+{w}_{ahp}{\delta }_{spk}(t)$$
(1)

where Vmem represents the neuron’s membrane potential, f() is an exponential function of Vmem with a positive exponent77, vahp represents a after-hypolarizing term that is increased with every output spike, and which has a negative feedback onto the membrane potential, typical of spike-frequency adaptation mechanisms78. Indeed, the term δspk(t) is 1 when the neuron spikes, and zero otherwise. The terms τmem and τahp represent the time constants of the membrane potential and after-hypolarizing potential respectively (see Table 4 for the values used in the simulations of the neural architecture). The term Isyn(t) represents the total weighted sum of the synaptic input, which in our network is composed of one excitatory and one inhibitory synaptic input that are subtracted from each other (Isyn(t) = Iexc(t) − Iinh(t)). The equations that govern the dynamics of the synaptic excitatory and inhibitory circuits are, to first order approximation:

$${\tau }_{exc}\frac{d}{dt}{I}_{exc}(t)+{I}_{exc}(t)=\; {w}_{exc}{\delta }_{UP}(t)\\ {\tau }_{inh}\frac{d}{dt}{I}_{inh}(t)+{I}_{inh}(t)=\; {w}_{inh}{\delta }_{DN}(t)$$
(2)

where τexc and τinh represent the time constants of the synapses, wexc and winh their weights (see also Table 4 for the values used in the simulations). The terms δUP(t) and δDN(t) are one during UP and DN input spikes respectively, and zero otherwise.

Table 4 Synapse parameters of the SNN model depicted in (Fig. 1d).

SNN model signal processing features

The software simulations made in the prototyping stage to model the hardware implementation of the Spiking Neural Network (SNN) used equations derived from the Differential Pair Integrator (DPI) synapse circuit analysis13,59, by taking into account circuit constraints, such as 20% variability in all state variables due to device mismatch, or the fact that all variables encoded by currents were clipped at zero (currents in the neuron and synapse circuits can only flow in one direction). Figure. 6a shows the behavioral simulation results for the normalized steady-state response of the DPI to spike trains encoding an input sine wave, as a function of sine wave frequency. As expected, the DPI reproduces a standard low-pass filter behavior, also for spiking inputs. By combining the response of the excitatory DPI synapse with the one of the inhibitory synapse and appropriately choosing their time constants, we effectively designed a band-pass filter coarsely tuned to the spectral properties of High Frequency Oscillations (HFOs) (see Fig. 6b). Then, by exploiting the device mismatch effects in the synapse and neuron circuits (also simulated in software) and combining the output of multiple, slightly different neurons, we created an ensemble of “weak classifiers” that can, collectively, detect the occurrence of an HFOs in the data and to generalize to the slight variations present in the HFO signals.

Fig. 6: DPI low- and band-pass filter characteristics for spiking inputs.
figure6

a Behavioral simulation results for the normalized steady-state response of the Differential Pair Integrator (DPI) to spike trains encoding an input sine wave, as a function of sine wave frequency. The DPI is able to reproduce a standard low-pass filter behavior for spiking inputs. b Band-pass filters resulting from the combination of DPIs with different time constants. A first-order band-pass filter results from subtracting the time responses to sine waves of varying frequencies of a single excitatory DPI synapse with a given time constant with the time responses of an inhibitory DPI synapse with a different time constant. The band-pass filters depicted here were obtained by using an excitatory DPI with a time constant of 6 ms and subtracting the activity of inhibitory DPIs with time constants ranging from 0.5–4.5 ms.

Software simulation and hardware validation of the neural architecture

For the software simulation of the network we used the Spiking Neural Network simulator Brian279 and a custom made toolbox58 that makes use of equations which describe the behavior of the neuromorphic circuits. To find the optimal parameters of the SNN, we were guided by the clinically relevant HFO marked by the Morphology Detector31: Around the HFO marked in the iEEG31 we created snippets of data ± 25 ms. These snippets were used to select the parameters for the ADM and the SNN network (see Methods). The SNN architecture was validated using the previous generation of the neuromorphic processor DYNAP-SE47, for which a working prototyping framework is available. The high-level software-hardware interface used to send signals to the SNN, configure its parameters, and measure its output was designed in collaboration with SynSense AG, Switzerland.

Patient data

We analyzed long-term iEEG recordings from the medial temporal lobe of 9 patients. Patients had drug-resistant focal epilepsy as detailed in Table 1. Presurgical diagnostic workup at Schweizerische Epilepsie-Klinik included recording of iEEG from the medial temporal lobe. The independent ethics committee approved the use of the recorded data for research and patients signed informed consent. The surgical planning was independent of HFO. Patients underwent resective epilepsy surgery at UniversitätsSpital Zürich. After surgery, the patients were followed-up for >1 year. Postsurgical outcome was classified according to the International League Against Epilepsy (ILAE)80.

The data set is publicly available43 and is considered a standard dataset for HFO benchmarking36 as it fulfills the following requirements29.

  • iEEG sampling rate of 2000 Hz

  • low thermal noise level of the iEEG (<30 nV/\(\sqrt{Hz}\))

  • iEEG recorded during periods of slow-wave sleep, which promotes low muscle activity and high HFO rates

  • several intervals from the same patient recorded during the same night and subsequent nights for test-retest analysis

  • intervals are at least three hours apart from epileptic seizures to eliminate the influence of seizure activity

  • after iEEG recording, patients underwent epilepsy surgery where a volume of the brain was resected

  • documentation of the electrode contacts that were localized in the resected brain volume

  • documentation of post-operative seizures, i.e. whether seizure freedom was achieved for >1 year

The amount of nights and intervals varied across patients with up to six intervals (≈5 min each) that were recorded in the same night (Table 1). We focused on the 3 most medial bipolar channels from recordings in the medial temporal lobe because HFO in these channels are known to have higher signal-to-noise ratio31. In total, we analyzed 18 hours of data recorded from 206 electrode contacts. In a previous publication with this data set, we had detected 34,479 HFO with the Morphology detector31,37 and compared the HFO area to the resected brain volume to predict seizure outcome in order to validate the HFO detection31.

HFO detection

HFO detection was performed independently for each channel in each 5-min interval of iEEG. The signal pre-processing steps consisted of bandpass filtering, baseline detection and transforming the continuous signal into spikes using the ADM block. The ADM principle of operation is as follows: whenever the amplitude variation of the input waveform exceeds an upper threshold Vtu a positive spike on the UP channel is generated; if the change in the amplitude is lower than a threshold Vtd, a negative spike in the DN channel is produced.

As the amplitude of the recordings changed dramatically with electrode, patient data and recording session, we introduced a baseline detection mechanisms that was used to adapt the values of the Vtu and Vtd thresholds in order to produce the optimal number of spikes required for detecting HFO signals while suppressing the background noise and outliers in the recordings. This baseline was calculated for each iEEG channel in software: during the first second of recording, the maximum signal amplitude was computed over non-overlapping windows of 50 ms. These values were then sorted and the baseline value was set to the average of the lowest quartile. This procedure excluded outliers on one hand, and suppressed the noise floor on the other hand. This procedure was optimal for converting the recorded signals into spikes.

Spikes entered the SNN architecture as depicted in Fig. 5b, c. The SNN parameters used to maximize HFO detection were selected by analyzing the Inter-Spike-Intervals (ISIs) of the spike trains produced by the ADM and comparing their characteristics in response to inputs that included an HFO event versus inputs that had no HFO events. This analysis was then used to tune the time constants of the SNN output layer neurons and synapses. Specifically, the approach used was to rely on an ensemble of neurons in the output layer and to tune them with parameters sampled from a uniform distribution. The average time constant for the neurons was chosen to be 15 ms, with a coefficient of variation set by the analog circuit devise mismatch characteristics, to approximately 20%. Similarly, the excitatory synapse time constants were set in the range (3–6) ms and the inhibitory synapse time constants in the range (0.1–1) ms.

After sending the spikes produced by the ADMs to the SNN configured in this way, we evaluated snippets of 15 milliseconds output data produced by the SNN and signaled the detection of an HFO every time spikes were present in consecutive snippets of data. Outlier neurons in the hardware SNN that spiked continuously were considered uninformative and were switched off for the whole study. The activity of the rest of the neurons faithfully signaled the detection of HFO (see Table 2). For the HFO count, spikes with inter-spike-intervals <15 ms were aggregated to mark a single HFO.

Post-surgical outcome prediction

To retrospectively “predict” the postsurgical outcome of each patient in this data set, we first detected the HFO in each 5-min interval by measuring the activity of the silicon neurons in the hardware SNN. We calculated the rate of HFO per recording channel by dividing the number of HFO in the specific channel by the duration of the interval. The distribution of HFO rates over the list of channel defines the HFO vector. In this way we calculated an HFO vector for each interval in each night. We quantified the test-retest reliability of the distribution of HFO rates over intervals by computing the scalar product of all pairs of HFO vectors across intervals (Table 1). We then delineated the “HFO area” by comparing the average HFO rate over all recordings and choosing the area at the electrodes with HFO rates exceeding the 95 percentile of the rate distribution. Finally, to assess the accuracy of the patient outcome prediction, we compared the HFO area identified by our procedure with the area that was resected in surgery, and compared it with the postsurgical seizure outcome (Table 1).

Ethics statement

The study was approved by the institutional review board (Kantonale Ethikkommission Zurich PB-2016-02055). All patients signed written informed consent. The study was performed in accordance with all relevant ethical guidelines and regulations.

Data availability

The iEEG data analyzed here are freely available at OpenNeuro in BIDS format under https://openneuro.org/datasets/ds003498.

Code availability

The code used in this study is available at https://github.com/kburel/SNN_HFO_iEEG(https://zenodo.org/badge/latestdoi/359535894).

References

  1. 1.

    Editoral-team. Big data needs a hardware revolution, Nature. 554, 145–146 (2018).

  2. 2.

    Mead, C. How we created neuromorphic engineering. Nat. Electron. 3, 434–435 (2020).

    Article  Google Scholar 

  3. 3.

    Furber, S., Galluppi, F., Temple, S. & Plana, L. The SpiNNaker project. Proc. IEEE 102, 652–665 (2014).

    Article  Google Scholar 

  4. 4.

    Thakur, C. S. et al. Large-scale neuromorphic spiking array processors: a quest to mimic the brain. Front. Neurosci. 12, 891 (2018).

    PubMed  PubMed Central  Article  Google Scholar 

  5. 5.

    Davies, M. et al. Loihi: A neuromorphic manycore processor with on-chip learning. IEEE Micro 38, 82–99 (2018).

    Article  Google Scholar 

  6. 6.

    Pei, J. et al. Towards artificial general intelligence with hybrid tianjic chip architecture. Nature 572, 106–124 (2019).

    ADS  CAS  PubMed  Article  PubMed Central  Google Scholar 

  7. 7.

    Yang, S. et al. Scalable digital neuromorphic architecture for large-scale biophysically meaningful neural network with multi-compartment neurons. Neural Netw. Learn. Syst. IEEE Trans. 31, 148–162 (2019).

    Article  Google Scholar 

  8. 8.

    Yang, S. et al. BiCoSS: Toward large-scale cognition brain with multigranular neuromorphic architecture. IEEE Trans. Neural Netw. Learn Syst. https://doi.org/10.1109/TNNLS.2020.3045492 (2021).

  9. 9.

    Maass, W. & Sontag, E. Neural systems as nonlinear filters. Neural Comput. 12, 1743–72 (2000).

    CAS  PubMed  Article  Google Scholar 

  10. 10.

    Kasabov, N., Dhoble, K., Nuntalid, N. & Indiveri, G. Dynamic evolving spiking neural networks for on-line spatio- and spectro-temporal pattern recognition. Neural Netw. 41, 188–201 (2013).

    PubMed  Article  PubMed Central  Google Scholar 

  11. 11.

    Indiveri, G. & Liu, S.-C. Memory and information processing in neuromorphic systems. Proc. IEEE 103, 1379–1397 (2015).

    CAS  Article  Google Scholar 

  12. 12.

    Backus, J. Can programming be liberated from the von Neumann style?: a functional style and its algebra of programs. Commun. ACM 21, 613–641 (1978).

    MathSciNet  MATH  Article  Google Scholar 

  13. 13.

    Chicca, E., Stefanini, F., Bartolozzi, C. & Indiveri, G. Neuromorphic electronic circuits for building autonomous cognitive systems. Proc. IEEE 102, 1367–1388 (2014).

    Article  Google Scholar 

  14. 14.

    Rubino, A., Livanelioglu, C., Qiao, N., Payvand, M. & Indiveri, G. Ultra-low-power FDSOI neural circuits for extreme-edge neuromorphic intelligence. IEEE Trans. Circuits Syst. I Regul. Pap. 68, 45–56 (2020).

    Article  Google Scholar 

  15. 15.

    Bauer, F., Muir, D. & Indiveri, G. Real-time ultra-low power ECG anomaly detection using an event-driven neuromorphic processor. Biomed. Circuits Syst. IEEE Trans. 13, 1575–1582 (2019).

    Article  Google Scholar 

  16. 16.

    Corradi, F. et al. ECG-based heartbeat classification in neuromorphic hardware. In 2019 International Joint Conference on Neural Networks (IJCNN), 1–8 (IEEE, 2019).

  17. 17.

    Donati, E., Payvand, M., Risi, N., Krause, R. & Indiveri, G. Discrimination of EMG signals using a neuromorphic implementation of a spiking neural network. Biomed. Circuits Syst. IEEE Trans. 13, 795–803 (2019).

    Article  Google Scholar 

  18. 18.

    Azghadi, M. R. et al. Hardware implementation of deep network accelerators towards healthcare and biomedical applications. IEEE Trans. Biomed. Circuits Syst., https://doi.org/10.1109/TBCAS.2020.3036081 (2020).

  19. 19.

    Harrison, R. The design of integrated circuits to observe brain activity. Proc. IEEE 96, 1203–1216 (2008).

    Article  Google Scholar 

  20. 20.

    Jun, J. J. et al. Fully integrated silicon probes for high-density recording of neural activity. Nature 551, 232–236 (2017).

    ADS  CAS  PubMed  PubMed Central  Article  Google Scholar 

  21. 21.

    Frey, U. et al. Switch-matrix-based high-density microelectrode array in CMOS technology. IEEE J. Solid-State Circuits 45, 467–482 (2010).

    ADS  Article  Google Scholar 

  22. 22.

    Ballini, M. et al. A 1024-channel CMOS microelectrode array with 26,400 electrodes for recording and stimulation of electrogenic cells in vitro. IEEE J. Solid-State Circuits 49, 2705–2719 (2014).

    ADS  PubMed  PubMed Central  Article  Google Scholar 

  23. 23.

    Khazaei, Y., Shahkooh, A. A. & Sodagar, A. M. Spatial redundancy reduction in multi-channel implantable neural recording microsystems. In 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), 898–901 (IEEE, 2020).

  24. 24.

    Mohammadi, R. et al. A compact ECoG system with bidirectional capacitive data telemetry. In 2014 IEEE Biomedical Circuits and Systems Conference (BioCAS) Proceedings, 600–603 (IEEE, 2014).

  25. 25.

    Boran, E. et al. High-density ECoG improves the detection of high frequency oscillations that predict seizure outcome. Clin. Neurophysiol. 130, 1882–1888 (2019).

    PubMed  Article  PubMed Central  Google Scholar 

  26. 26.

    Zijlmans, M. et al. How to record high-frequency oscillations in epilepsy: a practical guideline. Epilepsia 58, 1305–1315 (2017).

    PubMed  Article  PubMed Central  Google Scholar 

  27. 27.

    Fedele, T. et al. Prediction of seizure outcome improved by fast ripples detected in low-noise intraoperative corticogram. Clin. Neurophysiol. 128, 1220–1226 (2017).

    PubMed  Article  PubMed Central  Google Scholar 

  28. 28.

    Jobst, B. C. et al. Intracranial eeg in the 21st century. Epilepsy Curr. 20, 180–188 (2020).

    PubMed  PubMed Central  Article  Google Scholar 

  29. 29.

    Fedele, T., Ramantani, G. & Sarnthein, J. High frequency oscillations as markers of epileptogenic tissue-end of the party? Clin. Neurophysiol. 130, 624–626 (2019).

    PubMed  Article  PubMed Central  Google Scholar 

  30. 30.

    Fedele, T. et al. Automatic detection of high frequency oscillations during epilepsy surgery predicts seizure outcome. Clin. Neurophysiol. 127, 3066–3074 (2016).

    PubMed  Article  PubMed Central  Google Scholar 

  31. 31.

    Fedele, T. et al. Resection of high frequency oscillations predicts seizure outcome in the individual patient. Sci. Rep. 7, 13836 (2017).

    ADS  PubMed  PubMed Central  Article  CAS  Google Scholar 

  32. 32.

    Weiss, S. A. et al. Visually validated semi-automatic high-frequency oscillation detection aides the delineation of epileptogenic regions during intra-operative electrocorticography. Clin. Neurophysiol. 129, 2089–2098 (2018).

    PubMed  Article  Google Scholar 

  33. 33.

    Nariai, H. et al. Prospective observational study: Fast ripple localization delineates the epileptogenic zone. Clin. Neurophysiol. 130, 2144–2152 (2019).

    PubMed  Article  PubMed Central  Google Scholar 

  34. 34.

    Demuru, M. et al. The value of intra-operative electrographic biomarkers for tailoring during epilepsy surgery: from group-level to patient-level analysis. Sci. Rep. 10, 1–18 (2020).

    Article  CAS  Google Scholar 

  35. 35.

    Remakanthakurup Sindhu, K., Staba, R. & Lopour, B. A. Trends in the use of automated algorithms for the detection of high-frequency oscillations associated with human epilepsy. Epilepsia 61, 1553–1569 (2020).

    PubMed  Article  PubMed Central  Google Scholar 

  36. 36.

    Chen, Z., Maturana, M. I., Burkitt, A. N., Cook, M. J. & Grayden, D. B. High-frequency oscillations in epilepsy: what have we learned and what needs to be addressed. Neurology 96, 439–448 (2021).

    PubMed  Article  PubMed Central  Google Scholar 

  37. 37.

    Burnos, S., Frauscher, B., Zelmann, R., Haegelen, C. & Sarnthein, J. The morphology of high frequency oscillations (HFO) does not improve delineating the epileptogenic zone. Clin. Neurophysiol. 127, 2140–2148 (2016).

    PubMed  Article  PubMed Central  Google Scholar 

  38. 38.

    Burelo, K. et al. A spiking neural network (SNN) for detecting high frequency oscillations (HFOs) in the intraoperative ECoG. Sci. Rep. 11, 1–10 (2021).

    Article  CAS  Google Scholar 

  39. 39.

    Beniczky, S., Karoly, P., Nurse, E., Ryvlin, P. & Cook, M. Machine learning and wearable devices of the future. Epilepsia 62, S116–S124 (2021).

    PubMed  Google Scholar 

  40. 40.

    Stirling, R. E., Cook, M. J., Grayden, D. B. & Karoly, P. J. Seizure forecasting and cyclic control of seizures. Epilepsia 62, S2–S14 (2021).

    PubMed  Article  Google Scholar 

  41. 41.

    Nabbout, R. & Kuchenbuch, M. Impact of predictive, preventive and precision medicine strategies in epilepsy. Nat. Rev. Neurol. 16, 674–688 (2020).

    PubMed  Article  Google Scholar 

  42. 42.

    A neuromorphic brain computer interface for real-time detection of a new biomarker for epilepsy surgery. Video https://youtu.be/Pw83Mrza_rg (2020).

  43. 43.

    Fedele, T., Krayenbühl, N., Hilfiker, P., Adam, L. & Sarnthein, J. interictal iEEG during slow-wave sleep with HFO markings, https://doi.org/10.18112/openneuro.ds003498.v1.0.1 (2021).

  44. 44.

    Yang, M., Liu, S.-C. & Delbruck, T. A dynamic vision sensor with 1% temporal contrast sensitivity and in-pixel asynchronous delta modulator for event encoding. IEEE J. Solid-State Circuits 50, 2149–2160 (2015).

    ADS  Article  Google Scholar 

  45. 45.

    Corradi, F. & Indiveri, G. A neuromorphic event-based neural recording system for smart brain-machine-interfaces. Biomed. Circuits Syst. IEEE Trans. 9, 699–709 (2015).

    Article  Google Scholar 

  46. 46.

    Sharifshazileh, M., Burelo, K., Fedele, T., Sarnthein, J. & Indiveri, G. A neuromorphic device for detecting high-frequency oscillations in human iEEG. In IEEE International Conference on Electronics, Circuits and Systems (ICECS), 69–72 (IEEE, 2019).

  47. 47.

    Moradi, S., Qiao, N., Stefanini, F. & Indiveri, G. A scalable multicore architecture with heterogeneous memory structures for dynamic neuromorphic asynchronous processors (DYNAPs). Biomed. Circuits Syst. IEEE Trans. 12, 106–122 (2018).

    Article  Google Scholar 

  48. 48.

    Harrison, R. & Charles, C. A low-power low-noise CMOS amplifier for neural recording applications. IEEE J. Solid-State Circuits 38, 958–965 (2003).

    ADS  Article  Google Scholar 

  49. 49.

    Wattanapanitch, W., Fee, M. & Sarpeshkar, R. An energy-efficient micropower neural recording amplifier. IEEE Trans. Biomed. Circuits Syst. 1, 136–147 (2007).

    CAS  PubMed  Article  Google Scholar 

  50. 50.

    Delbruck, T. & Van Schaik, A. Bias current generators with wide dynamic range. Analog Integr. Circuits Signal Process. 43, 247–268 (2005).

    Article  Google Scholar 

  51. 51.

    Fleischer, P. & Tow, J. Design formulas for biquad active filters using three operational amplifiers. Proc. IEEE 61, 662–663 (1973).

    Article  Google Scholar 

  52. 52.

    Shiue, M.-T., Yao, K.-W. & Gong, C.-S. A. A bandwidth-tunable bioamplifier with voltage-controlled symmetric pseudo-resistors. Microelectron. J. 46, 472–481 (2015).

    Article  Google Scholar 

  53. 53.

    Lazar, A. A., Pnevmatikakis, E. A. & Zhou, Y. The power of connectivity: identity preserving transformations on visual streams in the spike domain. Neural Netw. 44, 22–35 (2013).

    PubMed  MATH  Article  PubMed Central  Google Scholar 

  54. 54.

    Mahowald, M. VLSI analogs of neuronal visual processing: a synthesis of form and function. Ph.D. thesis, California Institute of Technology Pasadena (1992).

  55. 55.

    Deiss, S., Douglas, R. & Whatley, A. A pulse-coded communications infrastructure for neuromorphic systems. In Pulsed Neural Networks (eds. Maass, W. & Bishop, C.) Ch. 6, 157–78 (MIT Press, 1998).

  56. 56.

    Boahen, K. Communicating neuronal ensembles between neuromorphic chips. In Neuromorphic Systems Engineering (Lande, T. ed.), 229–259 (Kluwer Academic, Norwell, MA, 1998).

  57. 57.

    Boahen, K. Point-to-point connectivity between neuromorphic chips using address-events. IEEE Trans. Circuits Syst. II 47, 416–34 (2000).

    MATH  Article  Google Scholar 

  58. 58.

    Milde, M. et al. teili: A toolbox for building and testing neural algorithms and computational primitives using spiking neurons. Unreleased software, Institute of Neuroinformatics, University of Zurich and ETH Zurich (2018).

  59. 59.

    Bartolozzi, C. & Indiveri, G. Synaptic dynamics in analog VLSI. Neural Comput. 19, 2581–2603 (2007).

    PubMed  MATH  Article  Google Scholar 

  60. 60.

    Chicca, E. & Indiveri, G. A recipe for creating ideal hybrid memristive-CMOS neuromorphic processing systems. Appl. Phys. Lett. 116, 120501, (2020).

  61. 61.

    Payvand, M., Nair, M. V., Müller, L. K. & Indiveri, G. A neuromorphic systems approach to in-memory computing with non-ideal memristive devices: from mitigation to exploitation. Faraday Discuss. 213, 487–510 (2019).

    ADS  CAS  PubMed  Article  PubMed Central  Google Scholar 

  62. 62.

    Polikar, R. Essemble based systems in decision making. IEEE Circuits Syst. Mag. 6, 21–45 (2006).

    Article  Google Scholar 

  63. 63.

    Burrello, A., Cavigelli, L., Schindler, K., Benini, L. & Rahimi, A. Laelaps: An energy-efficient seizure detection algorithm from long-term human iEEG recordings without false alarms. In 2019 Design, Automation & Test in Europe Conference & Exhibition (DATE), 752–757 (IEEE, 2019).

  64. 64.

    Feng, L., Li, Z. & Wang, Y. VLSI design of SVM-based seizure detection system with on-chip learning capability. IEEE Trans. Biomed. Circuits Syst. 12, 171–181 (2017).

    Article  Google Scholar 

  65. 65.

    Van Helleputte, N. et al. 18.3 a multi-parameter signal-acquisition SoC for connected personal health applications. In Solid-State Circuits Conference Digest of Technical Papers (ISSCC), 2014 IEEE International, 314–315 (IEEE, 2014).

  66. 66.

    Yoo, J. et al. An 8-channel scalable EEG acquisition SoC with patient-specific seizure classification and recording processor. IEEE J. Solid-State Circuits 48, 214–228 (2012).

    ADS  Article  Google Scholar 

  67. 67.

    Yaul, F. M. & Chandrakasan, A. P. 11.3 a 10b 0.6nw SAR ADC with data-dependent energy savings using lsb-first successive approximation. In Solid-State Circuits Conference Digest of Technical Papers (ISSCC), 2012 IEEE International, 198–199 (2014).

  68. 68.

    Lai, W.-C., Huang, J.-F., Chen, W.-C. & Kao, F.-T. A continuous-time low-pass sigma-delta ADC chip design for LTE communication application and bio-signal acquisitions. In 2014 7th International Congress on Image and Signal Processing, 1079–1084 (IEEE, 2014).

  69. 69.

    Tang, W. et al. Continuous time level crossing sampling adc for bio-potential recording systems. IEEE Trans. Circuits Syst. I, Regul. Pap. 60, 1407–1418 (2013).

    Article  Google Scholar 

  70. 70.

    Lee, S.-Y. & Cheng, C.-J. A low-voltage and low-power adaptive switched-current sigma–delta ADC for bio-acquisition microsystems. IEEE Trans. Circuits Syst. I Regul. Pap. 53, 2628–2636 (2006).

    Article  Google Scholar 

  71. 71.

    Harrison, R. et al. A low-power integrated circuit for a wireless 100-electrode neural recording system. IEEE J. Solid-State Circuits 42, 123–133 (2007).

    ADS  Article  Google Scholar 

  72. 72.

    Angotzi, G. N. et al. SiNAPS: An implantable active pixel sensor CMOS-probe for simultaneous large-scale neural recordings. Biosens. Bioelectron. 126, 355–364 (2019).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  73. 73.

    Kim, S. et al. A sub-μw/ch analog front-end for δ-neural recording with spike-driven data compression. IEEE Trans. Biomed. Circuits Syst. 13, 1–14 (2019).

    PubMed  Article  PubMed Central  Google Scholar 

  74. 74.

    Wang, S. et al. A compact quad-shank CMOS neural probe with 5,120 addressable recording sites and 384 fully differential parallel channels. IEEE Trans. Biomed. Circuits Syst. 13, 1625–1634 (2019).

    PubMed  Article  PubMed Central  Google Scholar 

  75. 75.

    Valtierra, J. L., Delgado-Restituto, M., Fiorelli, R. & Rodríguez-Vázquez, A. A sub- μ w reconfigurable front-end for invasive neural recording that exploits the spectral characteristics of the wideband neural signal. IEEE Trans. Circuits Syst. I Regul. Pap. 67, 1426–1437 (2020).

    Article  Google Scholar 

  76. 76.

    Türe, K., Dehollain, C. & Maloberti, F. Implantable monitoring system for epilepsy. In Wireless Power Transfer and Data Communication for Intracranial Neural Recording Applications, 11–23 (Springer, 2020).

  77. 77.

    Brette, R. & Gerstner, W. Adaptive exponential integrate-and-fire model as an effective description of neuronal activity. J. Neurophysiol. 94, 3637–3642 (2005).

    PubMed  Article  Google Scholar 

  78. 78.

    Ha, G. E. & Cheong, E. Spike frequency adaptation in neurons of the central nervous system. Exp. Neurobiol. 26, 179–185 (2017).

    PubMed  PubMed Central  Article  Google Scholar 

  79. 79.

    Goodman, D. & Brette, R. Brian: a simulator for spiking neural networks in Python. Front. Neuroinformatic 2, https://doi.org/10.3389/neuro.01.026.2009 (2008).

  80. 80.

    Wieser, H. et al. Proposal for a new classification of outcome with respect to epileptic seizures following epilepsy surgery. Epilepsia 42, 282–286 (2001).

    CAS  PubMed  Article  PubMed Central  Google Scholar 

  81. 81.

    Qiao, N. et al. A reconfigurable on-line learning spiking neuromorphic processor comprising 256 neurons and 128k synapses. Front. Neurosci. 9, 141 (2015).

    PubMed  PubMed Central  Article  Google Scholar 

Download references

Acknowledgements

This project has received funding from Swiss National Science Foundation (SNSF 320030_176222) and from the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program grant agreement No. 724295. We thank our colleagues Ole Richter and Ning Qiao for the design of the SNN cores on the chip presented, as well as the design of the spike encoders and asynchronous buffers in the analog headstage. We are also grateful to Dmitrii Zendirkov for support in measuring the variability of the synapse and neuron circuits, and Chenxi Wu, Carsten Nielsen and Adrian M. Whatley, for developing the software and firmware required to communicate with the hardware platform and for configuring the parameters on chip.

Author information

Affiliations

Authors

Contributions

J.S. and G.I. conceived the experiments, M.S. and K.B. conducted the experiments and analyzed the results. All authors wrote and reviewed the manuscript.

Corresponding authors

Correspondence to Johannes Sarnthein or Giacomo Indiveri.

Ethics declarations

Competing interests

The authors declare no competing interests.

Additional information

Peer review informationNature Communications thanks Nik Kasabov, Shuangming Yang and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary information

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Sharifshazileh, M., Burelo, K., Sarnthein, J. et al. An electronic neuromorphic system for real-time detection of high frequency oscillations (HFO) in intracranial EEG. Nat Commun 12, 3095 (2021). https://doi.org/10.1038/s41467-021-23342-2

Download citation

Comments

By submitting a comment you agree to abide by our Terms and Community Guidelines. If you find something abusive or that does not comply with our terms or guidelines please flag it as inappropriate.

Search

Quick links

Nature Briefing

Sign up for the Nature Briefing newsletter — what matters in science, free to your inbox daily.

Get the most important science stories of the day, free in your inbox. Sign up for Nature Briefing