Paper The following article is Open access

NET-TEN: a silicon neuromorphic network for low-latency detection of seizures in local field potentials

, , , and

Published 5 May 2023 © 2023 The Author(s). Published by IOP Publishing Ltd
, , Citation Margherita Ronchini et al 2023 J. Neural Eng. 20 036002 DOI 10.1088/1741-2552/acd029

1741-2552/20/3/036002

Abstract

Objective. Therapeutic intervention in neurological disorders still relies heavily on pharmacological solutions, while the treatment of patients with drug resistance remains an unresolved issue. This is particularly true for patients with epilepsy, 30% of whom are refractory to medications. Implantable devices for chronic recording and electrical modulation of brain activity have proved a viable alternative in such cases. To operate, the device should detect the relevant electrographic biomarkers from local field potentials (LFPs) and determine the right time for stimulation. To enable timely interventions, the ideal device should attain biomarker detection with low latency while operating under low power consumption to prolong battery life. Approach. Here we introduce a fully-analog neuromorphic device implemented in CMOS technology for analyzing LFP signals in an in vitro model of acute ictogenesis. Neuromorphic networks have progressively gained a reputation as low-latency low-power computing systems, which makes them a promising candidate as processing core of next-generation implantable neural interfaces. Main results. The developed system can detect ictal and interictal events with ms-latency and with high precision, consuming on average 3.50 nW during the task. Significance. The work presented in this paper paves the way to a new generation of brain implantable devices for personalized closed-loop stimulation for epilepsy treatment.

Export citation and abstract BibTeX RIS

Original content from this work may be used under the terms of the Creative Commons Attribution 4.0 license. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.

1. Introduction

Pharmaceutical treatment currently represents the prevailing therapy in epilepsy. Yet, about one-third of the patients fail to respond to anti-epileptic drugs [1, 2]. Resorting to other strategies is therefore necessary in these cases to prevent or suppress seizures. Deep brain stimulation (DBS) holds great promise for treating medically intractable epilepsy [37]. In this regard, a distinction must be made between open-loop and closed-loop DBS. In the former approach, the stimulation is either continuous or cyclic; the electrical stimulus is repeated periodically following a pre-programmed schedule, regardless of the dynamic state of the targeted brain circuitry. Conversely, closed-loop devices operate adaptively, delivering a stimulation pattern upon the detection of specific electrographic biomarkers. Both methods can effectively reduce the duration and/or the frequency of seizures [3, 4]. However, empirical evidence points to a higher efficacy and fewer adverse effects of the closed-loop over the open-loop paradigm [8, 9], as the stimulation is informed by the ongoing brain activity [10].

A closed-loop system requires the integration of three essential components: (1) a recording interface to amplify and filter the signal, (2) a processing unit to analyze the recorded signals and extract informative features, and (3) a stimulation back-end to deliver an electrical feedback [1113]. The processor plays a pivotal role, since success in anticipating and averting seizures depends on its responsiveness and accuracy. Highly accurate tracking of seizures can be achieved using software-based algorithms [14, 15], but their computational complexity forces them to run offline on high-performance computers [16]. Local real-time analysis of data is therefore necessary to reduce wireless communication power overhead [17], though on-chip processing tightens the already stringent requirements in terms of area and power consumption [18]. In this respect, plenty of wearable and implantable classification systems have been proposed [1620]. Unfortunately, most devices still lack an intelligent control algorithm able to work around the large inter-patient variability [21]. To address all these challenges, neuromorphic processing cores promise to become an integral part of next-generation neural implants.

Neuromorphic circuits operate on the same principles as biological information-processing systems, drawing inspiration from the physical phenomena that govern the electrical behavior of neurons and synapses to implement computational primitives [22]. Thanks to the spike-based representation of information, the parallelism of multiple processing elements and their colocalization with memory units, neuromorphic systems achieve low-latency and low-power performance, for which they have emerged as a worthy opponent for von Neumann architectures in computing systems [23]. These features also make them an appealing candidate for implantable neural interfaces, as their structure is inherently suited to simulating spiking neural networks, that are a powerful tool to solve problems of spatiotemporal pattern recognition [2427]. As such, neuromorphic systems have already found successful application for processing a broad range of biological electrical signals [2833], including high-frequency oscillations as pathological biomarkers of epilepsy [3436] and seizure detection [37].

Here, we describe NET-TEN, a fully-analog subthreshold neuromorphic network implemented in a standard 180 nm complementary metal-oxide-semiconductor (CMOS) process for the detection of ictal and interictal events from rodent brain slices coupled to multi-electrode array (MEA). This work contributes to the state of the art of neuromorphic processors for the detection of epilepsy biomarkers by scaling down the required area and power consumption, therefore moving in the direction of implantable devices.

2. Methods

2.1. Brain slice preparation and maintenance

Horizontal hippocampus-cortex (CTX) slices, 400 µm thick, were prepared from male CD1 mice 4-8 weeks old. Epileptiform activity was induced by treatment of the K+ channel blocker 4AP (250 µM). A detailed description of the methods can be found in [38]. All procedures have been approved by the Institutional Animal Welfare Body and by the Italian Ministry of Health (authorization 860/2015-PR), in accordance with the National Legislation (D.Lgs. 26/2014) and the European Directive 2010/63/EU. All efforts were made to minimize the number of animals used and their suffering.

2.2. Multi-electrode array recording

Extracellular local field potentials (LFPs) were acquired using the Mc_Rack software through a $6\times 10$ planar MEA (Ti-iR electrodes, diameter 30 µm, inter-electrode distance 500 µm, impedance ${\lt}100$ kΩ) connected to a MEA1060 amplifier (all from Multichannel Systems, Germany). The brain slices were continuously perfused at ${\sim}1$ ml min−1 with artificial cerebrospinal fluid containing 4AP (see [38] for composition), equilibrated with carbogen, and maintained at 32 C. The signals were sampled at 2 kHz and low-passed at half the sampling frequency before digitization.

2.3. Data encoding

Discrete-time LFP data were encoded in MATLAB using the step-forward encoding (SFE) algorithm defined in [39]. The encoding process gives rise to two spike trains: UP spikes, associated with positive-going signal deflections, and DW spikes, associated with negative-going signal deflections. For each 100 s long LFP sample, two arrays of length 100 s*2 kHz were declared and their elements were initialized to '0'. One array was allocated to store UP spikes and the other for DW spikes. The algorithm was initialized by taking the first value of the LFP signal as baseline. At every new time step, the signal was compared to the baseline ± a threshold. When the value exceeded the upper limit of the interval an UP spike was registered by assigning a '1' to the corresponding element of the corresponding vector and the baseline was updated to the baseline plus the threshold. Likewise, a DW spike was recorded if the lower limit was surpassed and the baseline was shifted to baseline minus threshold. The threshold value determines the sensitivity of the encoder to changes in the signal and the resulting spiking frequency, with smaller values leading to higher spike densities. Here it was selected following an iterative process as the one that returned an output with an average firing rate of approximately $30\%$, where the output was the logic sum of UP and DW sequences. A second script in Python converted the two digital streams into real waveforms. Each '1' was replaced by a pulse of 130 µs full width at half maximum and 200 mV amplitude and the rest was zero padded. Finally, said waveforms were resampled at 10 kHz, saved as two separate columns in a text file and uploaded on a Keysight 33 600 A arbitrary waveform generator.

2.4. Neuron and synapse models

Silicon neurons were based on the mathematical model of spiking neuron developed by Izhikevich [40]. The model is derived from the bifurcation analysis of the Hodgkin–Huxley model and retains its most salient features, thereby enabling the faithful reproduction of a wide range of firing patterns commonly observed in biological cortical neurons. Izhikevich neurons are described by the following two-dimensional system of ordinary differential equations:

with the after-spike reset defined as

Equation (2)

where $V_\mathrm{mem}$ is the transmembrane voltage, that is the difference in electric potential between the interior and the exterior of the cell membrane, and U is a state variable named the slow membrane recovery variable. Unlike the Hodgkin–Huxley neuron, the model does not explicitly characterize the electrodiffusion kinetics of single specific ionic channels. However, the slow variable U reflects the overall state of activation of the potassium channels and inactivation of the sodium channels [40]. According to (1a), U acts as a negative feedback for $V_\mathrm{mem}$. In equation (1b), a can be regarded as a time constant which determines the rate of evolution of U, and b is another parameter that defines the strength of the coupling between $V_\mathrm{mem}$ and U, meaning how much the variation of the transmembrane voltage influences the dynamics of the slow variable. Instead, c and d from equation (2) are the after-spike reset values for the two state variables [40].

Synapses adhered to the spike-timing-dependent plasticity (STDP) rule, an unsupervised learning algorithm modeled after biological evidence [41]. According to STDP, synaptic modification depends on the temporal relationship between pre- and post-synaptic firing. This dependency holds true only if the distance between pre- and post-synaptic spike is within an interval of tens of milliseconds. This algorithm provides that, when a pre-synaptic spike anticipates a post-synaptic spike, the synaptic efficacy is strengthened; on the contrary, when the pre-synaptic neuron fires after the post-synaptic neuron, the connection between them is weakened [42]. In mathematical terms, STDP is modeled as:

Equation (3)

where $W(\Delta t)$ is the synaptic modification; $\Delta t$ is the time elapsed from when the pre-synaptic neuron emits a spike to when the post-synaptic neuron spikes; $\tau_+$ and $\tau_-$ are time constants in the order of 10 ms, and the parameters $A_+$ and $A_-$ are hyper-parameters that set the synaptic weight change rate.

2.5. Hardware design

All CMOS circuits were designed and simulated in sub-threshold analog domain by means of Cadence® Virtuoso® platform. Full custom layout design of the chip was carried out using Virtuoso® Layout Suite. Calibre was used to perform the Design Rule Check and verify whether the geometric constraints imposed by the semiconductor manufacturer were met. The same tool was employed for the Layout Versus Schematic verification and to extract the parasitic resistance and capacitance. Parasitics were then harnessed in post-layout simulations to ensure that each instantiated physical cell and its corresponding schematic circuit were functionally equivalent. The chip was fabricated by Taiwan Semiconductor Manufacturing Company in 180 nm process technology. The silicon die was packaged with a 48-pin Quad Flat No-Lead (QFN48) package. The ten output channels of the neuromorphic device were buffered on the printed circuit board (PCB) to increase their drivability. For this purpose, we chose the MAX44280 operational amplifier by virtue of its 0.4 pF input capacitance that limited the load at the output nodes. To minimize the parasitic capacitance introduced by the PCB traces, in the PCB layout, the buffers were placed as close as possible to the neuromorphic chip footprint. Circuit biases were controlled through adjustable voltage dividers on the PCB obtained from 100 kOhm potentiometers with 25 turns to allow fine adjustments. The maximum achievable value for each voltage bias was 200 mV, with one turn corresponding to a variation of 8 mV. $V_\mathrm{DD}$ and $V_\mathrm{D}$ could be tuned up to 450 mV, at the expense of the tuning precision, that dropped to 18 mV per turn.

2.6. Performance metrics

To find the precision of the system, each measurement of NET-TEN output firing was compared with the label signal associated with the delivered input sample. Precision is defined as:

Equation (4)

where TP means true positives and it is the number of spikes emitted by NET-TEN in correspondence of any pathological activity, that is when the label was either 1 (interictal) or 2 (ictal); instead, FP are the false positives, the number of spikes registered at the output when the input displayed healthy unaltered activity (baseline, label = 0). A precision score of 1.0 means that every retrieved event is clinically-relevant. The algorithm for computing the precision score looped over the whole dataset. Hence the score took into account the spike emitted for all samples and by all four significant output channels. The ictal response latency was calculated as the time difference between the rising edge of the ictal event in the label signal and the rising edge of the first subsequent spike impulse in the recorded output. Specifically, the rising edge was the time stamp at which the signal crossed half of its maximum value. Same approach was adopted to compute the interictal response latency. Considering the first two spikes appearing at the output of the neuromorphic device after the onset of an ictal episode, their interspike interval ($ISI_{I-II}$) was estimated as the time elapsed between the falling edge of the first impulse and rising edge of the second one, procedure used also for each of the interictal discharges. Similarly, the interspike interval $ISI_{I-III}$ was computed as the time between the first and the third output spike, when applicable.

3. Results

3.1. NET-TEN implementation

Figure 1 shows the results of a detection task performed by NET-TEN. Prerecorded LFP data of 100 s duration were converted into spikes in software using the SFE algorithm proposed by Kasabov et al [43] and delivered to the fabricated network through an arbitrary waveform generator. A second waveform generator synchronized with the first one was employed to carry the label signal and be able to display it on the oscilloscope together with NET-TEN neuronal spiking. Firing activity at the output signaled the detection of a pathological pattern in the LFP recordings.

Figure 1.

Figure 1. Example of a detection task completed by NET-TEN. (a) From top to bottom: a 100 s long sample of prerecorded local field potential (LFP) data. One single ictal event emerges from the baseline; UP and DW spikes generated from the conversion of the LFP data by the step-forward encoding (SFE) algorithm and used as input to NET-TEN. Please note that due to the high spike density and to the scale of the image, the single spikes cannot be clearly resolved and the stream of spikes appears almost as a continuous line. The high firing rate is the result of a low encoding threshold (for this sample equal to 2.7 µV), chosen as to also preserve any information contained in the baseline; Graphical representation of the density of UP and DW spikes fed to NET-TEN. The height of each bar corresponds to the number of spikes accumulated within one second; Label as manually assigned (0 = baseline, 1 = interictal, 2 = ictal); Voltage signal of one of the output neurons of NET-TEN as measured by the oscilloscope. (b) Zoom-in of the LFP signal with the corresponding UP and DW spikes generated by the SFE algorithm. Positive slopes in the signal lead to the emission of UP spikes; negative slopes result in DW spikes.

Standard image High-resolution image

Figure 2 provides a summary of the designed hardware components. The neuromorphic system was implemented in a 180 nm CMOS technology node and its layout covered an area of 1.08 mm2. The circuit voltage biases were adjusted by tuning the relative potentiometers on the PCB (depicted in figure 2(a)), while at the same time the corresponding firing activity generated at the output was compared with the label. In this way, it was possible to determine heuristically in which direction to steer each bias, in order to improve the classification accuracy. The fabricated chip is portrayed in figure 2(b). The voltage supply was set at 250 mV. The total static power consumption was 0.68 pW. The average power consumed by NET-TEN during a detection task calculated across samples was 3.50 nW. To evaluate the electrical behavior of the various functional modules that make up the neuromorphic network, these were fabricated as stand-alone components on a separate chip (figure 2(c)).

Figure 2.

Figure 2. (a) Rendering of the prototyping Printed Circuit Board (PCB) comprehensive of potentiometers to adjust the circuit biases. The 48-pin Quad Flat No-Lead (QFN48) footprint outlined in yellow hosts the packaged NET-TEN chip. (b) Photograph of the fabricated NET-TEN circuit die. (c) Die containing the stand-alone components: neuron block and synapse.

Standard image High-resolution image

Figure 3 illustrates the schematic of the three principal building blocks that constitute NET-TEN, namely the neuron, the excitatory post-synaptic current (EPSC) and the STDP circuits. As can be seen in figure 3(a), NET-TEN network has a feed-forward architecture composed by three sparsely-connected layers of ten neurons each. Every neuron of the input layer project to two neurons of the hidden layer, whose neurons also have a fan-in of two. Hidden and output layers are connected together in a one-to-one fashion, meaning every neuron of the hidden layer forms a synapse with one and only one neuron of the output.

Figure 3.

Figure 3. Schematic view of NET-TEN building blocks. (a) NET-TEN architecture. The network is composed by three layers of ten neurons each. There are no plastic synapses in correspondence of the input layer and the current injected into each input neuron is gated by a static weight set from the outside, on the PCB. Every neuron of the hidden layer receives two connections from the previous layer. Each connection corresponds to a spike-timing dependent plasticity (STDP) circuit with its respective excitatory post-synaptic current (EPSC) circuit. The currents delivered by the two separate EPSC blocks (one EPSC per connection) are summed together and integrated onto the capacitor $C_\mathrm{v}$ of the hidden neuron. (b) Neuron circuit. It can be functionally broken down into three sub-circuits: one controlling the transmembrane voltage $V_\mathrm{mem}$, another one in charge of the slow recovery variable U and finally a comparator (composed by two inverters), that compares $V_\mathrm{mem}$ to a threshold and generates an electric pulse (spike) if this is exceeded. $V_\mathrm{C}$ and $V_\mathrm{D}$ are the after-spike reset parameters, which are used to obtain the various possible firing behaviors of cortical neurons. (c) EPSC circuit produces the current $I_\mathrm{syn}$ that stimulates the neuron. The current $I_\mathrm{syn}$ has a rapid onset and then slowly decays with time, and its peak is a function of the synaptic weight $V_\mathrm{w}$. (d) STDP circuit, proposed by Indiveri [44] and here implemented fully in sub-threshold.

Standard image High-resolution image

The neuron, depicted in figure 3(b), was initially proposed in [45] and further described in [37]. The circuit replicates biologically plausible dynamics, following the Izhikevich model. After performing the Monte Carlo analysis, the transistor sizes were modified with respect to the original implementation and the capacitance values were set to $C_\mathrm{v}$ = 76.86 fF and Cu = 614.88 fF, to alleviate the effect of process variations. One single neuron cell occupied an area of 1476.84 $\mu{m}^2$. In the schematic, the two state variables of the Izhikevich model, i.e. the transmembrane voltage $V_\mathrm{mem}$ and the slow recovery variable U, are represented by the voltage across the integrating capacitors $C_\mathrm{v}$ and Cu , respectively. $I_\mathrm{syn}$ is the synaptic current generated on the basis of the previous network layer and, when injected into the neuron, it perturbs its equilibrium. $M1-M3$ current mirror serves as a positive feedback to accelerate the rise of $V_\mathrm{mem}$ and bring it closer to the switching threshold of $M9-M10$ inverter. This increase is counteracted by the leakage current $I_{M4}$, proportional to U, which causes the probability of firing to be at a minimum immediately after a spike. Another current mirror, formed by the transistors $M1, M2$ and $M7$, couples U to $V_\mathrm{mem}$. A negative feedback introduced by transistor $M6$ discharges Cu , reducing U by an amount dependent on its own present value. The two inverters $M9-M10$ and $M11-M12$ function as a comparator with a fixed threshold, whose value derives from how the transistors are sized. When the transmembrane voltage exceeds the threshold, the comparator emits a negative pulse to turn on $M8$ and reset U, and a positive pulse to reset $V_\mathrm{mem}$ through $M5$. The reset mechanism is controlled by voltage biases $V_\mathrm{C}$ and $V_\mathrm{D}$, which are a means to alter the spiking pattern. Negative and positive pulses are harnessed at the network level to activate the synaptic circuits whenever a pre- or post-synaptic spike is elicited [37].

The EPSC circuit shown in figure 3(c) is responsible for inducing the post-synaptic current $I_\mathrm{syn}$ when triggered by a pre-synaptic spike and it constitutes the fundamental module of the silicon synapse. The EPSC is a low-pass filtered version of the original spike impulse, and presents a steep rising phase and an approximately exponential decay. In between spikes, the transistor $M_{E}3$ is on and conducts a current. Since at the same time $M_{E}1$ is off, no current can flow in this branch and therefore all $I_{M_{E}3}$ is diverted into $C_\mathrm{syn}$, precharging the node $V_\mathrm{syn}$ to $V_\mathrm{DD}$. When a pre-synaptic pulse arrives, the discharge phase starts. As $M_{E}1$ turns on and $M_{E}3$ deactivates, a current $I_\mathrm{w}$ is drawn from $C_\mathrm{syn}$. The amplitude of such current is directly proportional to the synaptic strength $V_\mathrm{w}$, so the greater is $V_\mathrm{w}$ the more $C_\mathrm{syn}$ is discharged. At the falling edge of the pulse pre, $M_{E}3$ begins to conduct current again, leading to a slow increase in $V_\mathrm{syn}$ value. The whole circuit operates in subthreshold, which means that the EPSC has an exponential dependence on $V_\mathrm{syn}$. The ratio between the sizing of $M_{E}1$ and that of $M_{E}3$ drives the time course of $I_\mathrm{syn}$, resulting in a fast onset followed by a slow decaying phase (corresponding to the recharge of $C_\mathrm{syn}$ after spike completion). The EPSC circuit response has been derived analytically in [37], which also illustrates the relationship between $I_\mathrm{syn}$ peak value and the synaptic weight $V_\mathrm{w}$. Simulations of the circuit with a power supply $V_\mathrm{DD} = 250$ mV, meaning the same one used in the experimental studies, and a static weight $V_\mathrm{w} = 200$ mV, which is the maximum bias value achievable with the tunable voltage dividers present on the PCB, led to an EPSC with peak current $I_\mathrm{syn_{peak}} = 486.39$ pA and a decay constant of τ = 212.83 $\mu s$. The layout of the EPSC was 462.09 $\mu{m}^2$ large.

The synaptic strength for each of the connections that link NET-TEN layers together is dynamically updated in agreement with the STDP rule and it can take up any analog value between $V_\mathrm{DD}$ and ground. NET-TEN featured the STDP CMOS implementation conceived by Indiveri [44], which was here redesigned to work at ultra-low power (figure 3(d)). Amplitude and temporal evolution of potentiation and depression could be regulated respectively by voltage biases $V_\mathrm{tp}$ and $V_\mathrm{td}$, and $V_\mathrm{pb}$ and $V_\mathrm{db}$. The new implementation occupied 1054.75 $\mu \mathrm{m}^2$. Given that the synaptic weight was stored on a capacitor $C_\mathrm{w}$ = 206.30 fF, the synapses were able to retain the computed value only for a short period of time, in the order of tens of milliseconds.

3.2. Detection performance

The analyzed dataset comprises MEA recordings from the parahippocampal cortex (CTX) of n = 10 brain slices from n = 10 mice, to ensure fair representation of biological variability. The extracted samples were 100 s long signal segments around an ictal event. Three samples also featured interictal discharges, while one of them only contained an artifact. The dataset content is summarized in table 1. Figure 4 depicts a hippocampus-CTX slice coupled to a MEA and representative of the epileptiform patterns recorded by the electrode marked by the blue circle. During the measurements, the UP spikes were fed to five input neurons, the DW spikes to the other five, as shown in figure 3(d). All ten output pins were probed with the oscilloscope, but only four out of these ten were deemed to be informative for pattern recognition. In fact, despite all neuron and synapse circuits share the same nominal biases values, device mismatch affects the individual instances behavior. The described results refer to said four output channels.

Figure 4.

Figure 4. Multi-electrode array (MEA) electrode mapping. (a) Snippet of the MATLAB GUI used to map the electrodes in contact with the regions of interest within the brain slice. On top is the picture of a mouse hippocampus-CTX slice coupled to a $6\times 10$ MEA, where the mapped electrodes and the corresponding brain regions are identified by color-coded circles. Below the brain slice picture, a pushbutton panel enables the selection of the electrodes of interest (same color-coding as in the brain slice picture). (b) Representative signal recorded from the brain slice in (a), electrode 14 (e14), showing recurrent ictal discharges (marked by the red bars). Below is the ictal discharge marked by the red box, visualized at expanded time scale to show the tonic-clonic-like features of ictal activity. CTX: parahippocampal cortex. DG: Dentate Gyrus. CA3: Cornu Ammonis 3. CA1: Cornu Ammonis 1. SUB: Subiculum.

Standard image High-resolution image

Table 1. Ictal and interictal response latency for the different samples.

  Ictal response latency (ms)Interictal response latency (ms)
SampleTypeCh6Ch7Ch8Ch10Ch6Ch7Ch8Ch10
1Ictal31.431.231.652.9
2Ictal + Interictal48.148.148.457.580.1 * 86.1 * 80.4 * 130.8 *
3Ictal + Interictal104.2104.1104.6874.8138.6138.2138.8Undetected
4Artifact
5Ictal + Interictal203.1228.3203.8202.9147.8147.5148.2155.6
6Ictal178.9201.9179.3178.6
7Ictal44.143.844.355.9
8Ictal43.943.944.362.8
9Ictal41.726.149.738.4
10Ictal74.57474.798.7
Median [IQR] per channel48.1 [60.3]48.1 [60.3]49.7 [60.3]62.8 [122.7]138.6 [33.9]138.2 [30.7]138.8 [33.9]143.2 [12.4]
Median [IQR]56.7 [79.1]138.6 [39.2]

* Multiple interictal discharges present in the sample. The one displayed is the average value of the latencies for individual discharges.

The output response exhibited by NET-TEN in three distinct cases can be observed in figure 5. The precision score was 0.998. The device fired in correspondence of ictal events with a mean latency of 110.4 ms, while it took about 126.6 ms to respond to an interictal discharge. Table 1 details the response latency calculated for each LFP sample and for each retrieved output signal. Observe how the latency varied among the output channels, with some channels more reactive and others less reactive to the stimulus, depending on the internal dynamics of the network. Further classification capabilities were explored, looking for elements that would allow a distinction between ictal and interictal occurrence, and possible ways to discard artifacts. The amount of spikes released at the output differed between classes, and so did the interspike interval ($ISI_{I-II}$) in-between the first two spikes. The median spike count for ictal events amounted to 1117.5 with an interquartile range (IQR) of 1762.5. For interictal activity, the median spike count was 4.5 with IQR 7. In the case of the artifact, median and IQR were 27.5 and 22.8, with the first quartile being 19.3 and the third quartile equal to 42. Coming to the $ISI_{I-II}$, the values were first averaged across output channels. The median $ISI_{I-II}$ was 4.3 (3.7–4.8) ms for ictal and 7.8 (3.8–33.4) ms for interictal patterns. Instead, since there was only one sample including one artifact, the outcome of the average of $ISI_{I-II}$ across measured output signals came down to a single value corresponding to $ISI_\mathrm{artifact} = 562\,ms$. Figure 6(a) provides a visual representation of the feature space, where the number of output spikes is on the X-axis and $ISI_{I-II}$ on the Y-axis. In this plot both measurements are averaged across output channels, so each data point corresponds to an occurrence, either an ictal event, an interictal discharge or the artifact. As you can see, the three classes are clustered in three distinct groups. In particular, the clinically relevant events have a lower $ISI_{I-II}$ compared to the artifact, which means their onset is associated with a higher instantaneous firing frequency at the output. However, plotting the measurements relative to the different channels separately, as in figure 6(b), suggests that the use of $ISI_{I-II}$ could lead to a misclassification of the artifact. The interval $ISI_{I-III}$ is a better means of discrimination (figure 6(c)). Also, to take full advantage of the redundancy given by the multiple output channels, a potential postprocessing algorithm could look for the minimum $ISI_{I-III}$ across channels (see figure 6(d)). Interictal and ictal instances can be further discerned based on their spike count.

Figure 5.

Figure 5. NET-TEN response in three different scenarios. The local field potential (LFP) signals are presented, together with the corresponding label (0 = baseline, 1 = interictal, 2 = ictal) and the experimental measurement of one output of the fabricated neuromorphic device. All the displayed recordings belong to the same output neuron. (a) One single ictal event. The spiking activity at the output is initially very dense and it gradually decreases with time, in correspondence of the bursting phase. (b) Three interictal spikes building up to an ictal discharge. Another interictal spike follows the tail of the ictal episode. (c) Artifact.

Standard image High-resolution image
Figure 6.

Figure 6. (a) Relationship between the interspike interval between first and second spike emitted at the output ($ISI_{I-II}$) and the total number of output spikes for the three classes (ictal, interictal, and artifact). The values of $ISI_{I-II}$ and spike count are averaged across output channels. Each point represents an occurrence. (b) $ISI_{I-II}$ against number of output spikes. Every channel is plotted separately. Note how the use of the $ISI_{I-II}$ metric could lead to misclassification of the artifact. (c) Interspike interval between first and third spike emitted at the output ($ISI_{I-III}$) plotted against the total number of output spikes for each occurrence and for each output channel. The design of a postprocessing algorithm based on $ISI_{I-III}$ allows for artifact rejection. (d) Minimum value of $ISI_{I-III}$ among the informative output channels for each occurrence, and its corresponding spike count. Clusters appear linearly separable.

Standard image High-resolution image

3.3. Ictal discrimination

Listing 1 shows the pseudocode of the algorithm used to isolate the ictal events in NET-TEN's output signal. For each pulse in the signal, the algorithm calculates the interval between its falling edge and the rising edge two pulses ahead, and then compares it to a reference value set at $ISI_{thr} = 10$ ms. The reference value was extracted from figure 6(d). If the condition $ISI_{I-III} \lt ISI_{thr}$ is verified, which rules out the artifact, the algorithm checks whether 10 more spikes occur in the following 190 ms. If this second condition is also satisfied, the instance is tagged as an ictal event. The detection mark is placed in correspondence of the last spike of the sequence (the 13th spike). The ictal event is considered detected when it is tagged in at least one output channel. Table 2 lists the detection delays obtained for the different samples, quantified as the time between the detection mark and the ictal onset in the relative label signal.

Standard image High-resolution image

Table 2. Ictal detection delay and event duration for the different samples in the dataset.

SampleTypeIctal detection delay (ms)Ictal event duration (ms)Detection delay/event duration (%)
0Ictal45.522 669.90.2%
1Ictal + Interictal6477.328 741.922.5%
2Ictal + Interictal2233.972 765.93.1%
3ArtifactUndetectedMissing
4Ictal + Interictal229.440 454.90.6%
5Ictal203.132 284.90.6%
6Ictal67.561 680.20.1%
7Ictal22 239.847 035.947.3%
8Ictal610.975 640.20.8%
9Ictal99.522 355.90.4%
Median229.440 454.90.6%
[IQR][2134.4][32 938.3] 

An almost equivalent way to implement the above-mentioned two-step algorithm online and on-chip is by using a counter to count the number of spikes in the two predetermined time windows. A 8-bit counter, implemented in a 180 nm CMOS technology node, with clock frequency of 1 kHz can serve to continuously count up to 10 ms and 190 ms. According to the simulations, the dynamic power consumption of such counter amounts to 31 pW at 300 mV voltage supply. Meanwhile, a 3-bit counter counts the spikes fired at each output channel. The power consumption of this counter is signal-dependent, so its estimation is not straightforward. In terms of energy, the counter consumes 11.4 fJ/spike, which translates into 11.4 fJ/spike × 13 spike/classification = 148.2 fJ/classification.

Table 3 showcases the specifications and the performance of the developed device compared with other state-of-the-art systems for seizure detection.

Table 3. Comparison with state-of-the-art miniaturized systems for seizure detection.

 Salam et al TBCAS 2011 [16]Yoo et al JSSC 2012 [46]Chen et al JSSC 2014 [19]Altaf et al TBCAS 2016 [18]Sharifshazileh et al Nat. Commun 2021 [35]This work
Recorded signaliEEGscalp EEGiEEGscalp EEGiEEG (HFO)LFP
Technology180 nm180 nm180 nm180 nm180 nm180 nm
Area2 mm2 $\dagger$ $5 \times 5$ mm2 $\dagger$ (8 channels) $2.76 \times 4.88$ mm2 $\dagger$ (8 channels + stimulation) $5 \times 5$ mm2 $\dagger$ (8 channels)77.2 mm2 1.08 mm2 $\ddagger$
Supply1.8 V1.0 V (LSVM)1.8 V1.0 V (NLSVM)1.8 V0.25 V (NET-TEN) 0.3 V (counters)
On-chip classificationVoltage level and high frequency detectorsLinear support vector machineBio-signal processor (Entropy and Spectrum)Non-linear support vector machineSpiking neural networkSpiking neural network
Power consumption44.85 nW (detector)66 µW + 2.03 µJ/classification162.31 µW/channel (BSP)100.6 µW (NLSVM) + 1.83 µJ/classification555.6 µW3.53 nW + 148.2 fJ/classification
Detection delay13.5 s ${\lt}2$ s0.8 s2 s ${\sim}30$ ms56.7 ms [79.1 ms] (NET-TEN) 0.23 s [2.13 s] (ictal only)

Includes analog front end.Does not account for counters of postprocessing algorithm.HFO = high frequency oscillations, BSP = bio-signal processor.LSVM = linear support vector machine, NLSVM = non-linear support vector machine.

4. Discussion

The paper provided empirical results corroborating our initial claim that neuromorphic devices can be a suitable processing unit for neural implants. Overall, NET-TEN proved to be an effective tool to detect seizure-like activity in LFP signals pre-recorded in vitro, adding to the list of neuromorphic platforms or full custom small-scale systems previously employed to process electrophysiological signals for pattern recognition and anomaly detection. Note that the developed device is a special-purpose hardware whose design followed the specifications dictated by the particular targeted application, i.e. implantability, so minimization of area and power was prioritized. Indeed, area and power consumption of the final fabricated network were in line with the requirements of implantable technologies. During one detection task, NET-TEN consumed on average 3.50 nW. As a reference, this value is comparable to the one required by the metabolic activity of a single biological neuron cell, which is estimated to consume about 0.5–4.0 nW [47]. Therefore, it is fair to assume that, once implanted into the brain, the device would generate an amount of heat on a par with the heat release that normally accompanies neural metabolism, and that the physiological convective heat removal mechanism mediated by cerebral circulation would be enough to dissipate this heat and prevent any damage to the surrounding brain tissue. Such ultra-low power performance stems from mainly three factors. First of all, the spike-based nature of computation makes dynamic power the predominant component in power consumption, that is drawn only in correspondence of a spike at the input, while static power dissipation due to the transistors leakage current lies in the order of pW and is thus negligible in comparison. Secondly, and to complement the first point, thanks to the relative low-bandwidth of LFP data, all the information content is adequately represented by sparse spike trains where the closest pulses are separated by a distance of 350 µs (to better understand, look at how LFPs are converted in section 2.3). Once again, the fewer the spikes, the lower the power consumption will be due to less internal switching activities of the transistors. Finally, the inherent error resilience of spiking neural networks enables the use of sub-threshold design methodologies and, as a result, voltage supply can be drastically reduced.

Another guiding principle in the design of NET-TEN was biological resemblance. Even today, it is still debated which features of the neuron and synapse grant neural circuits the ability to recognize patterns, or at what scale collective computational properties emerge. The solution in this regard was to opt for circuits that mimicked their biological analogues as faithfully as possible, and also to favor high versatility, allowing the behavior of single functional blocks to be modified at a later stage. Said flexibility encompassed the firing patterns of the neuron, the magnitude of depression/potentiation, the temporal dependence of the synaptic update and the strength of the coupling between delivered input spikes and neurons of the first layer. Looking at the individual components, the neuron acts as a high pass filter, since a spike is triggered only when the charge accumulated on $C_\mathrm{v}$ is enough to cause the transmembrane potential to pass the switching threshold of the comparator, and this condition occurs exclusively when multiple incoming spikes follow one after the other. Therefore, the neuron output firing frequency is always smaller than the frequency of its weighted and accumulated pre-synaptic spike trains. Meanwhile, the EPSC circuit functions as an exponentially decaying kernel which implements the temporal convolution of the pre-synaptic spikes. For what concerns the STDP, given the very small capacitance value chosen to store the synaptic weight ($C_\mathrm{w}$), the module ultimately works more like a dynamically evolving filter than a learning algorithm with a stable outcome. It follows that, in this case, it is improper to speak of a training phase and a testing phase; or rather, these terms simply do not apply here, because the weight cannot be retained for extended periods of time and thus presenting the network with a sample is not going to affect how the network reacts to successive samples. However, the circuit can be expected to react in a similar way for similar input patterns.

A key determinant of the success of the whole system resides in how the analog signals were translated into spikes before being fed to NET-TEN. Generally speaking, an encoding algorithm must preserve all the task-relevant information and ideally do it with the least possible amount of spikes. This paper applied the SFE algorithm, which is a temporal spike encoding scheme that makes use of a threshold. A previous study conducted on a smaller network that shared the same basic units (neuron, EPSC and STDP) as NET-TEN demonstrated the feasibility of detecting ictal events regardless of the chosen threshold value and it also disclosed a trade-off between threshold and power consumption [37]. However, things change if the dataset incorporates a greater degree of biological variability, as in this paper. When samples present different baseline noise, as evident from the comparison between figures 5(a) and (b), a fixed threshold results in couples (UP and DW) of input spike trains with heterogeneous firing rates. At this point, identifying a unique set of biases that can lead to the same detection accuracy for all samples becomes challenging. Similarly, the threshold can be optimized for each single sample by choosing the one that minimizes the error between original and reconstructed signal, but in the absence of epileptiform activity (e.g. when we want to observe an artifact) the resulting threshold tends to be very low and prompt an excessive number of spikes. Ultimately, these experimental observations suggest that, for a predetermined set of biases, NET-TEN behaves optimally if the encoded samples all have approximately equal spike density. Under these circumstances, the device can be said robust to biological variability.

NET-TEN identified the pathological activity with low-latency, achieving a much lower detection delay than previously proposed neural-prosthetic seizure detectors [16, 18, 19]. In its current state, the device is not yet able to differentiate between ictal and interictal events and unfortunately is not robust to artifacts. Per contra, the paper pinpointed two elements that would help address these issues. Ictal and interictal discharges could be told apart by the number of spikes emitted at the output, which is consistently higher for ictal events compared to interictal. Instead, electrical artifacts could be isolated on the basis of the ISI between the first and the third output spikes. The manuscript went on further by proposing a postprocessing algorithm for the isolation of ictal events, successfully demonstrating the ability to reject the artifact and detect the ictal activity. In this context, it was shown how postprocessing would affect the overall latency of the system. Note that here the parameters of the algorithm were calibrated based on the selected dataset, but in a clinical setting, with a larger dataset and in the presence of inter-patient variability, clustering techniques like k-means could be applied to find the optimal parameters. A possible implementation of the postprocessing algorithm based on digital counters was also suggested, reporting its corresponding power consumption. Instead, for a fully-analog implementation, a bump circuit could be instrumental to compare the firing rate of the output neurons to a target value [48]. Alternatively, another approach that could be adopted to accomplish artifact rejection is the network-level mechanism presented by Burelo et al [34] who introduced a global-inhibitory neuron in the architecture to constantly suppress the activity of the output layer neurons, together with a dis-inhibitory neuron that gets excited by the input UP and DW spikes and silents the global-inhibitory neuron. The entire mechanism relies on the fact that the excitation of the disinhibitory neuron due to an artifact is too brief to culminate in the repression of the global-inhibitory neuron firing, so in the presence of an artifact, the activity of the output neurons keeps being inhibited. This method might not be ideal here since, how emerges from figure 6, the interictal discharges are associated with an emission of even less spikes with respect to the artifact and would then be suppressed as well. Anyway, the dimension of the dataset is too small to draw any firm conclusions, and one single artifact cannot be sufficient to determine the statistics of its class.

Fully-analog subthreshold design comes with advantages and disadvantages. On one hand, working in the subthreshold regime amplifies the impact of process variations on the electrical response of the circuit. In conventional devices, this effect is unwanted and needs to be minimized through various strategies, but in neuromorphic systems, random device mismatch is desirable. The mismatch naturally generates a normal distribution of the network parameters and increases the probability that neurons will be attuned to specific input patterns, a phenomenon already known in scientific literature [35, 49, 50]. Outside a given range the mismatch can have a detrimental nature and lead to unpredictable behavior, for instance it can give rise to neurons always spiking. This is the reason why only four out of ten output channels were considered to be informative for pattern recognition. Keep in mind that what has been said until now refers to the situation in which a fixed set of nominal biases is used throughout the measurements and also that, in the particular case of NET-TEN, there is no way of knowing a priori which output neurons will prove useful to complete the task. On the other hand, subthreshold design hinders the drivability of the circuit. Such effect could be compensated by an increase in the transistors sizes, thereby compromising on the area, or otherwise by accepting the low fan-out and embracing a sparsely-connected architecture, as has been done here.

The findings of this investigation represent a proof of concept that neuromorphic processors can identify electrophysiological biomarkers on-chip, in real-time and following an unsupervised learning paradigm. Thanks to its low-area, low-power and low-latency detection, the developed device is well suited for clinical and therapeutic applications, although further studies are needed to demonstrate the effectiveness of NET-TEN in a closed-loop sensing and conditioning system and to examine the dynamics arising from the interplay with the epileptogenic neural tissue. Finally, neuromorphic computing could play a central role in bringing to life the next generation of smart embedded sensors, that would perform data-driven and event-based computation at the edge, and this study is but one example.

Data availability statement

The data cannot be made publicly available upon publication because they are owned by a third party and the terms of use prevent public distribution. The data that support the findings of this study are available upon reasonable request from the authors.

Author contributions

M R designed NET-TEN, performed the measurements and wrote the first draft of this manuscript. Y R and M Z designed the PCB and contributed to the measurements. G P collected and labeled the MEA data, and provided technical guidance on their use. F M designed and supervised the study. All authors critically reviewed the manuscript.

Funding statement

This work was funded by the European Union through the projects: H2020-MSCA-IF-2014 RebUs—Rewiring Brain Units, GA 660689, awarded to GP. H2020-FETPROACT-2018(RIA) HERMES—Hybrid Enhanced Regenerative Medicine Systems, GA 824164

Please wait… references are loading.
10.1088/1741-2552/acd029