Experimental Comparison of Hardware-Amenable Spike Detection Algorithms for iBMIs
Shoeb Shaikh, Rosa So, Camilo Libedinsky, Arindam Basu

TL;DR
This study experimentally compares absolute threshold and non-linear energy operator spike detection algorithms in iBMIs, showing NEO's superior decoding performance in monkey experiments and advocating its adoption over AT.
Contribution
First experimental comparison of spike detection algorithms in iBMIs involving two monkeys, demonstrating NEO's improved performance over AT.
Findings
NEO increased decoding accuracy by ~5% in monkey A
NEO increased decoding accuracy by ~2% in monkey B
First reported experimental comparison of spike detection algorithms in iBMIs
Abstract
This paper presents an experiment based comparison of absolute threshold (AT) and non-linear energy operator (NEO) spike detection algorithms in Intra-cortical Brain Machine Interfaces (iBMIs). Results show an average increase in decoding performance of approx. 5% in monkey A across 28 sessions recorded over 6 days and approx. 2% in monkey B across 35 sessions recorded over 8 days when using NEO over AT. To the best of our knowledge, this is the first ever reported comparison of spike detection algorithms in an iBMI experimental framework involving two monkeys. Based on the improvements observed in an experimental setting backed by previously reported improvements in simulation studies, we advocate switching from state of the art spike detection technique - AT to NEO.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEEG and Brain-Computer Interfaces · Advanced Memory and Neural Computing · Neuroscience and Neural Engineering
Experimental Comparison of Hardware-Amenable Spike Detection Algorithms for iBMIs
Shoeb Shaikh1, Rosa So2, Camilo Libedinsky3 and Arindam Basu1 **This work was supported through grant RG87/16 by MOE, Singapore1Authors are with Nanyang Technological University, Singapore [email protected]2Author is with the Institute for Infocomm Research, Singapore [email protected]3Author is with SiNAPSE, National University of Singapore, Singapore [email protected]
Abstract
This paper presents an experiment based comparison of absolute threshold (AT) and non-linear energy operator (NEO) spike detection algorithms in Intra-cortical Brain Machine Interfaces (iBMIs). Results show an average increase in decoding performance of 5% in monkey A across 28 sessions recorded over 6 days and 2% in monkey B across 35 sessions recorded over 8 days when using NEO over AT. To the best of our knowledge, this is the first ever reported comparison of spike detection algorithms in an iBMI experimental framework involving two monkeys. Based on the improvements observed in an experimental setting backed by previously reported improvements in simulation studies, we advocate switching from state of the art spike detection technique - AT to NEO.
I INTRODUCTION
Intra-cortical Brain Machine Interfaces (iBMIs) have enabled patients suffering from debilitating spinal cord afflictions to regain a sense of control through demonstrations such as [1, 2] where the subjects are successfully able to feed themselves and [3] where record communication speeds have been achieved among other things [4, 5]. Spikes serve as an input to these systems, where instantaneous firing rates are computed on every recorded electrode and subsequently mapped to a behavioral co-variate to drive an effector or stimulate a paralysed limb.
The process of spike detection entails identifying a spike amidst the recorded background noise. Absolute Threshold (AT) method is the state of the art technique currently employed for this purpose in both non-human primate (NHP) [6, 4, 7] and human subject [3, 2] based studies. However, this technique is sensitive to placement of an optimal threshold. If one sets it too high, spikes are missed and if one sets it too low, false detections occur [8]. Secondly, hardware development in iBMIs is progressing towards including spike detection in the implant itself to counter the problem of transmitting broadband raw data rate [9, 10, 11, 12]. For such a design decision, it is not feasible to implement AT on chip as it requires large memory and concomitantly large area for computation of a median-based threshold [13].
An alternate technique by the name of non-linear energy operator (NEO) [14] has been shown to perform better in spike detection than AT in studies based on semi-synthetic data such as [15, 16]. Apart from being better adept at spike detection due to reasons which will be briefly touched upon in , NEO enjoys two specific advantages over AT. Firstly, it has been shown to be generally less sensitive to the placement of threshold as compared to AT [16]. Secondly, it is computationally friendly without any demanding memory requirements and extreme low power implementations such as [17, 18] consuming nW/channel, nW/channel respectively. Other spike detection techniques such as stationary wavelet transform product [19], exponential component - power component (EC-PC) [20] have been reported in literature, but these were not considered in this analysis owing to their relatively greater computational complexity [16, 21] than both AT and NEO.
Spike detection methods reported so far in literature are based on studies performed on synthetic and semi-synthetic data with realistic assumptions [8]. The logical next step we believe is to apply these findings in a behavioral task-based experimental framework to check for their validity. An analysis along similar lines has been reported in [13]. However, this study lacks on two fronts. Firstly, it is restricted to just one NHP instead of the standard protocol of two NHPs. Secondly, the proposed method’s hardware implementation consumes up to three orders of magnitude more power than the ones reported for NEO [21, 17, 18] reflecting it’s computational complexity.
Thus, the object of this study is to apply the simulation based finding of NEO’s preponderance over state of the art - AT in a simple experimental setting for two NHPs with iBMI performance as a yardstick. The line of reasoning is similar to [7], where spike sorting and thresholding were compared in context of iBMI performance.
II Spike Detection Algorithms
In this section, we briefly present AT and NEO spike detection methods.
II-A Absolute threshold
This method involves applying a threshold to the digitally filtered raw data at time to identify a spike. Threshold is computed over samples of filtered raw data as,
[TABLE]
where is the standard deviation estimate over samples of filtered raw data, is an integer typically between and . Negative threshold crossings of the filtered raw signal are considered as spikes.
II-B Non-linear Energy Operator
This method involves application of a pre-emphasis step before spike detection [15]. The idea behind this approach is to accentuate high energy, high frequency content amidst background noise thereby increasing spike to noise separation. NEO threshold calculation involves the following steps,
[TABLE]
where is the NEO processed, pre-emphasised signal at time . is then computed as a multiple - times the average of over samples of filtered raw data. The value of is optimized as per the experimental conditions [16, 21] and is not as sensitive as AT due to better spike to noise separation. Other methods of automatic threshold setting that are less sensitive to amplitude of the NEO output can also be used [17]. Also, NEO can be applied directly to the analog signals after the amplifier and before the ADC to save the ADC power dissipation [17].
III METHODS
III-A Neural Data Acquisition
Multiple microelectrode arrays were implanted in the hand/arm area of primary motor cortex. There were a total of and implanted electrodes sensing extracellular neural signals in monkeys A and B respectively. These signals were then passed through front-end circuitry sampling processed raw data at Hz [22]. The digitized raw data so obtained was subjected to digital bandpass filtering between and Hz implemented on a PC to yield at time .
III-B Experiment
The experiment protocol is described in detail in [4]. Briefly, a monkey was trained to manipulate the position of a robotic platform through a hand-controlled three-directional joystick. Four tasks - moving forward by m, turning right, turning left, staying still for seconds constituted the experiment. Trial was considered successful if the monkey reached the target within seconds for tasks involving movement and stayed still for seconds during the stop task. A successful trial was rewarded with a fruit reward by the trainer.
III-C Decoding Algorithm
We have used linear discriminant analysis (LDA) as the decoder of choice for mainly two reasons. Firstly, it is popularly used in BMIs operated in a discrete control fashion [4, 23, 24]. Secondly, LDA is a relatively simpler algorithm compared to more complex algorithms such as support vector machine and deep neural nets which have in some cases shown to outperform simple linear algorithms [24]. This ensures that the gains in decoding accuracy are primarily attributed to the spike detection method and not the superior generalization capabilities of the classification algorithm [13].
IV RESULTS
The LDA based decoder was trained de novo on the first session’s data on each day. Subsequent - sessions were used as test sessions for offline analysis. A total of sessions across days and sessions across days were used in the analysis for monkeys A and B respectively. Thresholds for both AT and NEO methods were set using the initial 30 seconds of raw data from the first session. For a fairer comparison multipliers and described in equations (2), (4) were swept for both AT and NEO respectively.
The averaged decoder results across all the test sessions are plotted in figures 2(a) and (b) respectively. For monkey A, NEO with () and AT with () perform the best respectively, and outperforms by %. Along similar lines for monkey B, NEO with () and AT with () perform the best respectively, and outperforms by %. Another point to note is that in both monkey cases, standard deviations of decoding accuracies across sessions for NEO are less than AT. For monkey A, the standard deviation of decoding accuracies across sessions for is %, whereas for it is %. Similarly for monkey B, standard deviation of decoding accuracies across sessions for is %, whereas for it is %. Thus, NEO performs better than AT with greater average and lower standard deviation of decoding accuracies across sessions for both monkeys.
V DISCUSSION
Initial iBMI studies resorted to spike sorting to map cortical neural firing rates to behavioral variables [25, 26]. However, studies such as [7, 27] have shown that perhaps it is unnecessary, with little or no loss in decoding accuracies obtained by forsaking sorting for simple threshold crossings. Furthermore, there have also been studies to provide a quantitative understanding for using threshold crossing in lieu of sorted spikes [28]. Thus, there is pressing evidence to simply use threshold crossings to monitor the population level response as a whole from intra-cortical microelectrode recordings. We argue that, NEO by virtue of being better adept at spike detection yields a more informative population response.
In figure 3, we have visualized filtered raw data and NEO processed signal along with different thresholds for NEO, AT for a single channel as a way to demonstrate the difference in spike detection between these two approaches. Ground truth spikes are marked in the form of downward pointing arrows. One can see that for AT with , , the threshold levels are relatively higher and some spikes are missed being detected. One might be tempted to go for a further lower threshold with to rein in the missed detections. However, with , some false detections can be seen to occur. Simple eyeballing in the lower half of the plot for NEO with reveals that spikes are comfortably detected with relatively lesser concern for false detection. One can easily observe the increased spike to noise ratio advantage offered by NEO over AT in figure. 3.
The color-coded firing rate plots in figures 4(a) and (b) also show evidence of increased firing rates appearing at the electrodes for NEO with as compared to AT with . This goes to show that NEO helps in detecting spikes from neurons which were perhaps missed by AT and helps in gleaning increased population-level information.
VI CONCLUSION
To conclude, we have shown NEO to be better than AT in context of iBMI performance for two monkeys with and improvement in decoding accuracy respectively. The underlying hypothesis is that NEO helps in better spike detection which in turn leads to enhanced performance. Thus, based on previous simulation studies [15, 16], current results and hardware amenability [17] we advocate switching from AT to NEO as the de facto spike detection method. Future work includes closed-loop trials and applying NEO in conjunction with more sophisticated decoders such as neural networks and Kalman filters.
ACKNOWLEDGMENT
The authors would like to thank Clement Lim for helping in animal training and data collection.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Collinger, Wodlinger, et al. , “High-performance neuroprosthetic control by an individual with tetraplegia,” The Lancet , no. 9866, pp. 557–564, feb.
- 2[2] Ajiboye, Willett, et al. , “Restoration of reaching and grasping movements through brain-controlled muscle stimulation in a person with tetraplegia: a proof-of-concept demonstration,” The Lancet , no. 10081, pp. 1821–1830.
- 3[3] Pandarinath, Nuyujukian, et al. , “High performance communication by people with paralysis using an intracortical brain-computer interface,” e Life , p. e 18554, feb.
- 4[4] Libedinsky, So, et al. , “Independent mobility achieved through a wireless brain-machine interface,” P Lo S ONE , vol. 11, no. 11, pp. 1–13, 2016.
- 5[5] Rajangam, Tseng, et al. , “Wireless Cortical Brain-Machine Interface for Whole-Body Navigation in Primates,” Scientific Reports , p. 22170.
- 6[6] Gilja, Nuyujukian, et al. , “A high-performance neural prosthesis enabled by control algorithm design,” Nature Neuroscience , vol. 15, no. 12, pp. 1752–1757, 2012.
- 7[7] Christie, Tat, et al. , “Comparison of spike sorting and thresholding of voltage waveforms for intracortical brain-machine interface performance,” Journal of Neural Engineering , no. 1, p. 16009.
- 8[8] Rey, Pedreira, et al. , “Past, present and future of spike sorting techniques,” Brain Research Bulletin , pp. 106–117.
