S IGNAL C ODING AND R ECONSTRUCTION USING MARKED S PIKE T RAINS
Anonymous authors
Paper under double-blind review
A BSTRACT
In many animal sensory pathways, the transformation from external stimuli to spike trains is essentially deterministic.
In this context, a new mathematical framework for coding and reconstruction, based on a biologically plausible model of the spiking neuron, is presented.
The framework considers encoding of a signal through marked spike trains generated by an ensemble of neurons via a standard convolve-then-threshold mechanism, albeit with a wide variety of convolution kernels.
Neurons are distinguished by their convolution kernels and threshold values.
Reconstruction is posited as a convex optimization minimizing energy.
Formal conditions under which perfect reconstruction of the signal from the spike trains is possible are then identiﬁed.
Coding experiments on a large audio dataset are presented to demonstrate the strength of the framework.
I NTRODUCTION
In biological systems, sensory stimuli is communicated to the brain primarily via ensembles of discrete events that are spatiotemporally compact electrical disturbances generated by neurons, otherwise known as spikes.
Spike train representation of signals, when sparse, are not only intrinsically energy efﬁcient, but can also facilitate downstream computation(6; 10).
In their seminal work, Olshausen and Field (11) showed how efﬁcient codes can arise from learning sparse representations of natural stimulus statistics, resulting in striking similarities with observed biological receptive ﬁelds.
(17) developed a biophysically motivated spiking neural network which for the ﬁrst time predicted the full diversity of V1 simple cell receptive ﬁeld shapes when trained on natural images.
Although these results signify substantial progress, an effective end to end signal processing framework that deterministically represents signals via spike train ensembles is yet to be laid out.
Here we present a new framework for coding and reconstruction leveraging a biologically plausible coding mechanism which is a superset of the standard leaky integrate-and-ﬁre neuron model (5).
Admittedly, the very coarse Σ∆ quantization of bandlimited signals investigated in (4) does amount to a spike train representation.
Along similar lines, (3) has explored the spike generating mechanism of the neuron as an oversampling, noise shaping analog-to-digital converter.
Likewise, an image encoding technique has been discussed in (8) using an integrate-threshold-reset framework that results in spike trains, which leverages differential pulse-code modulation (DPCM) at its core.
However, these techniques offer guarantees of reconstruction in the oversampled regime and operate on bandlimited signals, and therefore signify limited enhancement in the scope of signal reconstruction in application domains.
Our proposed framework identiﬁes reconstruction guarantees for a very general class of signals— those with ﬁnite rate of innovation (16)—as shown in our perfect reconstruction theorem.
Most other classes, e.g. bandlimited signals, are subsets of this class.
The proposed technique ﬁrst formulates reconstruction as an optimization that minimizes the energy of the reconstructed signal subject to consistency with the marked spike train , and then solves it in closed form.
Here marked spike train , which in following sections is simply termed as spike train , is used to emphasize the fact that signal encoding using our framework uses both timing and threshold information carried by individual spikes as opposed to the mere sequence of timings conveyed by standard spike train representations.
We then identify a general class of signals for which reconstruction is provably perfect under certain conditions.
Finally, we present simulation experiments coding for a large dataset of audio signals that demonstrate the efﬁcacy of the framework.
In a separate set of experiments on a smaller subset of audio signals we compare our framework with existing sparse coding algorithms viz matching pursuit and orthogonal matching, establishing the superiority of our technique.
In Sections 2 andwe introduce the coding and decoding frameworks.
Section 4 identiﬁes the class of signals for which perfect reconstruction is achievable if certain conditions are met.
Simulation results are presented for a large audio dataset in Section 6 that demonstrates the efﬁcacy of the approach.
We conclude in Section 7.
C ODING
The general class of deterministic mappings (i.e., the set of all nonlinear operators) from continuous time signals to spike trains is difﬁcult to characterize because the space of all spike trains does not lend itself to a natural topology that is universally embraced.
The result is that simple characterizations, such as the set of all continuous operators, can not be posited in a manner that has general consensus.
To resolve this issue, we take a cue from biological systems.
In most animal sensory pathways, external stimulus passes through a series of transformations before being turned into spike trains(15).
For example, visual signal in the retina is processed by multiple layers of non-spiking horizontal, amacrine and bipolar cells, before being converted into spike trains by the retinal ganglion cells.
Accordingly, we can consider the set of transformations that pass via an intermediate continuous time signal which is then transformed into a spike train through a stereotyped mapping where spikes mark threshold crossings.
The complexity of the operator now lies in the mapping from the continuous time input signal to the continuous time intermediate signal.
Since any time invariant, continuous, nonlinear operator with fading memory can be approximated by a ﬁnite Volterra series operator(2), this general class of nonlinear operators from continuous time signals to spike trains can be modeled as the composition of a ﬁnite Volterra series operator and a neuronal thresholding operation to generate a spike train.
Here, the simplest subclass of these transformations is considered: the case where the Volterra series operator has a single causal, bounded-time, linear term, the output of which is composed with a thresholding operation of a potentially time varying threshold.
The overall operator from the input signal to the spike train remains nonlinear due to the thresholding operation.
The code generated by an ensemble of such transformations, corresponding to an ensemble of spike trains, is explored.
Formally, we assume the input signal X ( t ) to be a bounded square integrable function over the compact interval [0 , T ] for some T ∈ R + , i.e., we are interested in the class of input signals
F = { X ( t )
| X ( t ) ∈
L 2 [0 , T ] } .
Since the framework involves signal snippets of arbitrary length, this choice of T is without loss of generalization.
We assume an ensemble of convolution kernels
K =
{ K j | j ∈ Z + , j ≤ n } , consisting of n kernels K j , j = 1 , . . . , n .
We assume that K j ( t ) is a continuous function on a bounded time interval [0 , T ] , i.e. ∀ j ∈ { 1 , . . . , n } , K j ( t ) ∈ C [0 , T ] ,
T ∈ R
+ .
Finally, we assume that K j has a time varying threshold denoted by T j ( t ) .
The ensemble of convolution kernels K encodes a given input signal X ( t ) into a sequence of spikes { ( t i , K j i ) } , where the i th spike is produced by the j thi kernel K j i at time t
i if and only if: (cid:82)
X ( τ ) K j i
( t i − τ ) dτ
=
T j i ( t i )
In our experiments a speciﬁc threshold function is assumed in which the time varying threshold T j ( t ) of the jth kernel remains constant at C j until that kernel produces a spike, at which time an after-hyperpolarization potential (ahp) is introduced to raise the threshold to a high value M j (cid:29) C j , which then drops back linearly to its original value within a refractory period δ j .
Stated formally,
[Equation]
Where t jl ( t ) denotes the time of the last spike generated by K j prior to time t .
D ECODING
How rich is the coding mechanism just described?
We can investigate this question formally by positing a decoding module.
The objective of the decoding module is to reconstruct the original signal from the encoded ensemble of spike trains.
Considering the prospect of the invertibility of the coding scheme, we seek a signal that satisﬁes the same set of constraints as the original signal when generating all spikes apropos the set of kernels in ensemble K .
Recognizing that such a signal might not be unique, we choose the reconstructed signal as the one with minimum L 2 -norm.
Formally, the reconstruction (denoted by X ∗ ( t ) ) of the input signal X ( t ) is formulated to be the solution to the optimization problem:
[Equation]
where { ( t i , K j i ) | i ∈ { 1 , ..., N }} is the set of all spikes generated by the encoder.
The choice of L 2 minimization as the objective of the reconstruction problem—which is the linchpin of our framework, as demonstrated in the theorems—can only be weakly justiﬁed at the current juncture.
The perfect reconstruction theorem that follows provides the strong justiﬁcation.
As it stands, the Lminimization objective is in congruence with the dictum of energy efﬁciency in biological systems.
The assumption is that, of all signals, the one with the minimum energy that is consistent with the spike trains is desirable.
Additionally, an L 2 minimization in the objective of (2) reduces the convex optimization problem to a solvable linear system of equations as shown in Lemmas 1 and 3.
Later we shall show that L 2 -minimization has the surprising beneﬁt of recovering the original signal perfectly under certain conditions.
S IGNAL C LASS FOR P ERFECT R ECONSTRUCTION
To establish the effectiveness of the described coding-decoding model, we have to evaluate the accuracy of reconstruction over a class of input signals.
We observe that in general the encoding of square integrable signals into spike trains is not a one-to-one map; the same set of spikes can be generated by different signals so as to result in the same convolved values at the spike times.
Naturally, with a ﬁnite and ﬁxed ensemble of kernels K , one cannot achieve perfect reconstruction for the general class of signals F as deﬁned in Section 2.
We now restrict ourselves to a subset G of the original class F deﬁned as G =
{ X ( t )
| X ( t ) ∈ F , X ( t ) =
{+(cid:80) Np =
+}
α p K j p ( t p − t ) , j p ∈ { 1 , ..., n } , α p ∈
R , t p ∈ R + , N ∈ Z + } and address the question of reconstruction accuracy.
Essentially G consists of all linear combinations of arbitrarily shifted kernel functions.
N is bounded above by the total number of spikes that the ensemble K can generate over [0 , T ] .
In the parlance of signal processing,
G constitutes Finite rate of Innovation signals (16).
For the class G the perfect reconstruction theorem is presented below.
The theorem is proved with the help of three lemmas.
Perfect Reconstruction Theorem: Let X ( t ) ∈
G be an input signal.
Then for appropriately chosen time-varying thresholds of the kernels, the reconstruction, X ∗ ( t ) , resulting from the proposed codingdecoding framework is accurate with respect to the L 2 metric, i.e., || X ∗ ( t ) − X ( t ) ||
2 = 0 .
Lemma 1: The solution X ∗ ( t ) to the reconstruction problem given by (2) can be written as:
[Equation]
where the coefﬁcients α i ∈
R can be solved from a system of linear equations.
Proof: Application of the Representer Theorem (13) on (2) directly results in:
[Equation]
where the α i ’s are real valued coefﬁcients.
In essence, the reconstructed signal X ∗ ( t ) becomes a summation of the kernels, shifted to their respective times of generation of spikes, scaled by appropriate coefﬁcients.
Plugging (4) into the constraints (2) gives:
[Equation]
Setting b i =
T j i ( t i ) and P ik = (cid:82) K j k ( t k − τ ) K j i ( t i − τ ) dτ results in:
[Equation]
Equation (5) deﬁnes a system of N equations in N unknowns of the form:
[Equation]
where α = (cid:104) α 1 , ..., α N (cid:105) T , T = (cid:104) T j 1 ( t 1 ) , ..., T j N ( t N ) (cid:105) T and P is an N × N matrix with elements
P ik =
(cid:82) K j k ( t k − τ ) K j i ( t i − τ ) dτ .
Clearly P is the Gramian Matrix of the shifted kernels { K j i ( t i − t ) | i ∈ 1 , 2 , ..., N } in the Hilbert space with the standard inner product.
It is well known that P is invertible if and only if { K j i ( t i − t ) | i ∈ 1 , 2 , ..., N } is a linearly independent set.
If P is invertible α has a unique solution.
If, on the other hand, P is not invertible, α has multiple solutions.
However, as the next lemma shows, every such solution leads to the same reconstruction X ∗ ( t ) , and hence any value of α that satisﬁes 6 can be chosen.
We note in passing that in our experiments we have used the least square solution.
[Equation]
Import: The goal of the optimization problem is to ﬁnd the best object in the feasible set.
However, the application of the Representer Theorem converts the constraints into a determined system of unknowns and equations, turning the focus onto the feasible set, effectively changing the optimization problem into a solvable system that results in a closed form solution for the α i ’s. This implies that instead of solving (2), we can solve for the reconstruction from X ∗ ( t )
=
(cid:80) Ni =
α
i K j i
( t i − t ) , where α i is the i-th element of α = P − 1 T .
Here, P − 1 represents either the inverse or the Moore-Penrose inverse, as the case may be.
Lemma 2: Let equation 6 resulting from the optimization problem 2 have multiple solutions.
Consider any two different solutions for α , namely α 1 and α 2 , and hence the corresponding reconstructions are given by X 1 ( t )
= (cid:80) Ni =
α
i
K
j
i
( t i − t ) and X 2 ( t )
=
(cid:80) Ni =
α
i K j i ( t i − t ) , respectively.
Then X
= X 2 .
Proof: Let S be the subspace of L 2 -functions spanned by { K j i ( t i − t ) | i ∈ 1 , 2 , ..., N } with the standard inner product (by assumption each of { K j i ( t i − t ) | i ∈ 1 , 2 , ..., N } are L 2 -functions
and hence S is a subspace of the larger space of all L 2 -functions).
Clearly S is a Hilbert space with dim ( S ) ≤ N .
Hence there exists { e 1 , ..., e M } , an orthonormal basis of S (where M ≤ N ).
Assume that the hypothesis is false, i.e. X 1 (cid:54) =
X 2 .
This implies that ∃
a
i s and b i s such that X 1 ( t ) =
(cid:80) Mi
=1 a i e i and
X 2 ( t ) =
(cid:80) Mi
=1 b i e i where not all a i s are same as the corresponding b i s.
=
⇒ ∃ k
such that a k (cid:54)
=
b k = ⇒ (cid:104) X 1 ( t ) , e k (cid:105)
=
a k (cid:54) =
b k = (cid:104) X 2 ( t ) , e k (cid:105)
But e k ∈ span ( { K j i ( t i − t ) | i ∈ 1 , 2 , ..., N } ) =
⇒ ∃ { c 1 , ..., c N } such
that e k = (cid:80) Ni =
c i K j i ( t i − t ) =
⇒ (cid:104) X 1 ( t ) , e k (cid:105) =
(cid:80) Ni
=1 c i (cid:104) X 1 ( t ) , K j i ( t i − t ) (cid:105) =
(cid:80) Ni
=1 c i T
j i ( t i )
Now, since X 1 ( t ) , X 2 ( t ) are both solutions to the optimization problem= ⇒ (cid:104)
X 1 ( t ) , e k (cid:105) =
(cid:80) N i
= c i (cid:104) X 2 ( t ) , K j i ( t i − t ) =
(cid:104)
X 2 ( t ) , e k (cid:105) =
⇒ (cid:104) X 1 ( t ) , e k (cid:105) =
(cid:104)
X 2 ( t ) , e k (cid:105) -which contradicts the hypothesis.
(cid:50) Import: Lemma 2 essentially establishes the uniqueness of solution to the optimization problem formulated in 2 as any solution to equation 6.
The proof follows from the fact that the reconstruction is in the span of the shifted kernels { K j i ( t i − t ) | i ∈ 1 , 2 , ..., N } and the inner products of the reconstruction with each of K j i ( t i − t ) is given (by the spike constraints of 2).
Such a reconstruction must be unique in the subspace S .
Lemma 3: Let X ∗ ( t ) be the reconstruction of an input signal X ( t ) and
{ ( t i , K j i ) } Ni =1 be the set of spikes generated.
Then, for any arbitrary signal ˜ X ( t ) within the span of { K j i ( t i − t ) | i ∈ { 1 , 2 , ..., N }} , i.e., the set of shifted kernels at respective spike times, given by ˜ X ( t ) =
(cid:80)
Ni =1 a
i K j i ( t i − t ) the following inequality holds: || X ( t ) − X ∗ ( t ) ||
≤ || X ( t )
− ˜ X
( t ) ||
Proof: || X ( t ) − [Equation] ( t [Equation]
=
[Equation]
( t ) (cid:124)
[Equation]
t ) [Equation] B ||
First, (cid:104) A, K j i ( t i − t ) (cid:105) =
(cid:104) X ( t ) ,
K j i ( t i − t ) (cid:105) − (cid:104) X [Equation] ( t ) , K j i ( t i − t ) (cid:105) , ∀ i ∈ { 1 , 2 , .., N } =
[Equation]
(Using the constraints in (2) & (2))
Second, (cid:104) A, B (cid:105) =
(cid:104) A,
N (cid:88) i =
( α i − a i )
K j i ( t i − t ) (cid:105) (By Lemma 1 X ∗ ( t ) =
N (cid:88) i = α
i K j i ( t i − t ) ) =
N (cid:88) i =
[Equation]
[-A || 
-]
[-|| 
-]
Import: The implication of the above lemma is quite remarkable.
The objective deﬁned in (2) chooses a signal with minimum energy satisfying the constraints, deemed the reconstructed signal.
However as the lemma demonstrates, this signal also has the minimum error with respect to the input signal in the span of the shifted kernels.
This signiﬁes that our choice of the objective in the decoding module not only draws from biologically motivated energy optimization principles, but also performs optimally in terms of reconstructing the original input signal within the span of the appropriately shifted spike generating kernels.
Corollary: An important consequence of Lemma 3 is that additional spikes in the system do not worsen the reconstruction.
For a given input signal X ( t ) if S 1 and S 2 are two sets of spike trains where S 1 ⊂ S 2 , the second a superset of the ﬁrst, then Lemma 3 implies that the reconstruction due to S 2 is at least as good as the reconstruction due to S 1 because the reconstruction due to S 1 is in the span of the shifted kernel functions of S 2 as S 1 ⊂ S 2 .
This immediately leads to the conclusion that for a given input signal the more kernels we add to the ensemble the better the reconstruction.
Proof of the Theorem: The proof of the theorem follows directly from Lemma 3.
Since the input signal X ( t ) ∈ G , let X ( t ) be given by:
X
[-(cid:80) Np =
 α p K j p ( t p − t ) ( α p ∈ R , t p ∈ R + , N ∈ Z + )-][Equation]
Assume that the time varying thresholds of the kernels in our kernel ensemble K are set in such a manner that the following conditions are satisﬁed:
(cid:104) X ( t ) , K j p ( t p − t ) (cid:105) =
T j p ( t p ) ∀ p ∈ { 1 , ..., N } i.e., each of the kernels K j p at the very least produces a spike at time t p against X ( t ) (regardless of other spikes at other times).
Clearly then X ( t ) lies in the span of the appropriately shifted response functions of the spike generating kernels.
Applying Lemma 3 it follows that: || X ( t ) − X ∗ ( t ) ||
2 ≤ || X ( t ) − X ( t )
|| 2 = [Equation] Import: In addition to demonstrating the potency of the coding-decoding scheme, this theorem frames Barlow’s efﬁcient coding hypothesis (1)—that the coding strategy of sensory neurons be adapted to the statistics of the stimuli—in mathematically concrete terms.
Going by the theorem, the spike based encoding necessitates the signals to be in the span of the encoding kernels for perfect reconstruction.
Inverting the argument, kernels must learn to adapt to the basis elements that generate the signal corpora for superior reconstruction.
A PPROXIMATE R ECONSTRUCTION AND THE E FFECT OF A HP
The perfect reconstruction theorem stipulates the conditions under which exact recovery of a signal is feasible in the proposed framework.
At ﬁrst glance, it may seem challenging to meet these conditions for an arbitrary class of natural signals.
The concern stems from two difﬁculties: ﬁrstly, given a ﬁxed set of kernels, the input signal may not lie in the span of their arbitrary shifts, and secondly, we may not be able to generate spikes at the desired locations as postulated in the proof of the theorem.
To address the ﬁrst problem, it is important to choose kernel functions appropriately so that they can represent the input signals reasonably well.
One can leverage biological knowledge; for example, it is well-known that auditory ﬁlters are effectively modeled using gammatones (12).
Hence our experiments in Section 6 on auditory signals were coded using gammatone kernels.
Not surprisingly, the reconstructions were excellent.
To address the second issue, we observe that our decoding model is a continuous transformation from the space of spike trains to L 2 -functions, in the sense that small changes in spike times bring about only small changes in the reconstruction.
Hence we can achieve a reconstruction reasonably close to the input signal if we can, by some means, generate spikes close to the desired spike times assumed in the reconstruction theorem.
Crucially, the corollary to Lemma 3 can be leveraged here.
If incidentally, there are additional spikes generated in this effort, we are still guaranteed no worse a reconstruction.
We can produce spikes reasonably close to the desired locations by setting a low baseline threshold and a small refractory period of the after-hyperpolarization potential (ahp) for each kernel, a technique that is guaranteed to give good results as is conﬁrmed by our experiments in
Section 6 as well.
The following lemma formalizes the notion of how lowering the threshold and the refractory period of a kernel helps in generating spikes at the desired locations.
Lemma 4: Let X ( t ) be an input signal.
Let K p be a kernel for which we want to generate a spike at time t p .
Let the inner product (cid:104) X ( t ) , K p ( t p − t ) (cid:105) =
I p .
Then, if the baseline threshold of the kernel
K p is C p ≤ I p and the absolute refractory period is δ as modeled in Equation 1, the kernel K p must produce a spike in the interval [ t p − δ, t p ] according to the threshold model deﬁned in Equation 1.
Proof: The lemma is easily proved by contradiction.
Assume that prior to and including time t p , the last spike produced by kernel K p was at time t l .
Also assume that t l < t p − δ so that there is no spike in the interval [ t p − δ, t p ] .
Then by Equation 1 the threshold of kernel K p at time t p is T p ( t p ) =
C p .
But, (cid:104) X ( t ) , K p ( t p − t ) (cid:105)
=
I p ≥ C p .
Furthermore, since K p ( t ) is a continuous function, the convolution C ( t )
=
(cid:82) X ( τ ) K p ( t − τ ) dτ varies continuously.
By Equation 1, as the ahp kicks up the threshold to an arbitrarily high value M p at time t l and falls linearly to the value C p before time t p , by the intermediate value theorem, the threshold must be crossed by the convolution
C ( t ) after time t l and before time t p .
Since t l was the last spike of kernel K p before time t p , this is a contradiction.
Hence, t l ≮ t p − δ , implying that there must a spike in the interval [ t p − δ, t p ] .
(cid:50)
E XPERIMENTS ON R EAL S IGNALS
The proposed framework is general enough to apply to any class of signals.
However, since the computational resources necessary to code and reconstruct video signals (function of three variablesx, y, t ) would be sufﬁciently larger than audio signals (function of only one variable t ), to demonstrate that the proposed framework can indeed be adopted in real engineering applications as a novel encoding scheme, we ran experiments on a repository of audio signals.
6. D ATASET
We chose the Freesound Dataset Kaggle 2018 (or FSDKaggle2018 for short), an audio dataset of natural sounds posted on Kaggle referred in (7), containing 18,873 audio ﬁles annotated with labels from Google’s AudioSet Ontology (9).
For the purpose of the experiments, we ignored the labels and only focused on the sound data, since we were only interested in encoding and decoding the input signals.
All audio samples in this dataset are provided as uncompressed PCM 16bit, 44.1kHz, mono audio ﬁles, with each ﬁle consisting of sound snippets of duration ranging between 300ms to 30s.
In the experiment, we ran our proposed methodology over at least 1000 randomly chosen sound snippets from the samples in the dataset.
For ease of computation, we kept the length of the input audio snippets to be relatively small (ideally of size less than 50ms), splitting longer signals.
This choice of considering small snippets as input made the computation feasible on limited resource machines within reasonable time bounds by reducing the size of the P -matrix referred to in
Equation 4.
This choice is without loss of generalisation since for encoding signals of greater length, reconstruction using this framework can be done piece-wise: splitting a longer signal into smaller pieces, reconstructing piece-wise and ﬁnally stitching the reconstructed pieces together.
6. S ET OF K ERNELS
The proposed encoding technique is operational on a set of kernels, as stated in Equation 2.
The ﬁrst order of business was therefore the choice of a suitable set of kernels for our experiments.
Since gammatone ﬁlters are widely used as a reasonable model of cochlear ﬁlters in auditory systems (12), and mathematically, are fairly simple to represent— at n − 1 e − 2 πbt cos(2 πft + φ ) —in our experiments we chose a set of gammatone ﬁlters as our kernels (Figure 1).
The implementation of the ﬁlterbank is similar to (14), and we used up to 2000 gammatone kernels whose center frequencies were uniformly spaced on the ERB scale between 20 Hz to 20 kHz.
In all experiments, the kernels were normalized, and the baseline thresholds and the ahp parameters were kept the same across all kernels. [Figure] [Figure]
6. R ESULTS
Following the assertion of Lemma 4, in all experiments, the baseline threshold and the absolute refractory period were kept low enough so that for each sound snippet near perfect reconstructions could be obtained at a high spike rate.
A typical value of the refractory period was ≈ 5 ms and the baseline threshold value was kept as low as 10 − 3 .
As a consequence of the corollary to Lemma 3, additional spikes did not hurt reconstruction.
Experiments were conducted with varying number of kernels.
Once a reconstruction at a high spike rate was attained, a greedy technique that removed spikes in order of their impact on the reconstruction was instituted to get a compressed code for [Figure] S N R i n D B (b) each snippet.
Reconstructions were then recomputed with the fewer spikes as constraints.
Figure 2 demonstrates this process applied to a sample sound snippet through several stages of removal of spikes.
This process was repeated over 1000 randomly chosen sound snippets from the dataset.
Figure 3 displays the complete results of the experiment with ≈ 2000 gammatone kernels.
As the ﬁgure demonstrates, at high spike rates nearly perfect reconstructions were obtained consistently, and even though lowering the spike rate gradually increased noise, reasonable reconstructions could be obtained at low spike rates ( ≈ 15 DB at 25 kHz on average).
Since each reconstruction is calculated by solving a system of linear equations involving a P -matrix whose dimension is O ( N 2 ) where N is the number of spikes under consideration, computation is fairly time consuming, and the choice of parameters, such as the length of the input snippets, the number of kernels or the threshold parameters were made to ensure feasibility of computation with available resources while maintaining efﬁcacy of the overall reconstruction process.
Since the proposed framework approximates a signal with a sparse linear combination of shifted kernels (as shown by signal class G in 4) and therefore has similarities to compressed sensing, another set of experiments were designed to compare the proposed framework with existing sparse coding techniques viz, Convolutional Matching Pursuit and Convolutional Orthogonal Matching Pursuit.
Since the sparse coding techniques are computationally intensive over continuous signals, this set of experiments were restricted to only 10 gammatone kernels (for CMP and COMP all possible shifts of these 10 kernels were considered) and the experiments were run over 30 sound snippets.
Our technique was applied as before, starting at a high spike rate with spikes culled gradually to achieve better compression.
The results of comparison of average SNR values obtained by the techniques are shown in ﬁgure 4.
As is evident, our technique in its simplest form does slightly better than
COMP up until ≈ 50 kHz beyond which COMP performs better.
Our technique was ≈ 1 . 2 times faster than COMP on an i7 hexa-core processor for these experiments and should naturally scale much better than COMP since the proposed technique does not involve repeated computation of inner products.
The implementation details of the experiment can be found in our simulation code available at: http://bitbucket.org/crystalonix/oldsensorycoding.git .
[Figure]
C ONCLUSION
We have proposed a framework that codes for continuous time signals using an ensemble of spike trains in a manner that is very different from the pulse-density paradigm.
The framework applies to all ﬁnite rate of innovation signals, which is a very large class that includes bandlimited signals.
Although approximate reconstruction is computationally more expensive than interpolation with a sinc kernel (as in Nyquist Shannon), it is feasible, unlike in the case of compressed sensing where the generic case is NP-hard.
Fortuitously, the system of linear equations is best solved using the conjugate gradient method since P is a symmetric positive semideﬁnite matrix.
The excellent reconstruction results we have obtained with 2000 kernels—with no parameter tuning—is a testament to the potential of the technique.
The human cochlear nerve, in comparison, contains axons of ≈
50 , 000 spiral ganglion cells (corresponding, therefore, to 50,000 kernels).
As our theorems show, reconstruction with such a large set of kernels is guaranteed to be even better, albeit at a higher computational cost.
A A PPENDIX
In what follows, we furnish an Approximate Reconstruction Theorem to provide a lower bound on the reconstruction error under much more relaxed conditions than are required in the Perfect
Reconstruction Theorem (4), e.g. when there is small deviation in timing of the spikes or there is slight mismatch between shifted kernels and the components of the signal.
Approximate Reconstruction Theorem: Let the following assumptions be true:
• X ( t ) , the input signal to the proposed framework, can be written as a linear combination of some component functions as below:
[Equation]
where α i are bounded real coefﬁcients, the component functions f p i ( t ) are chosen from a possibly inﬁnite set H
= { f i ( t ) | i ∈ Z
+ , ||
f i ( t ) ||
= 1 } of functions of unit L 2 norm with compact support, and the corresponding t i ∈ R + are chosen to be bounded arbitrary time shifts of the component functions so that overall signal has a compact support in [0 , T ] for some T ∈ R + and thus the input signal still belongs to the same class of signals F , as deﬁned in section 2.
• There is at least one kernel K j i from the bag of encoding kernels K, such that the L 2distance of f p i ( t ) from K j i ( t ) is bounded.
Formally, ∃ [Equation] ∈ R + s.t. ||
f p i ( t ) [Equation] K j i ( t ) | [Equation]
2 < [Equation] ∀ i ∈ { 1 , ..., N } . • When X ( t ) is encoded by the proposed framework, each one of these kernels K j i produce a spike at time t (cid:48)
i at threshold T i such that | t
i − t (cid:48)
i | < ∆ ∀ i , for some ∆ ∈ R + . •
Each kernel K j ∈ K satisﬁes a Lipschutz type of condition as follows:
[Equation]
• And lastly the shifted component functions satisfy a frame bound type of condition as follows: (cid:80)
[Equation]
Then, reconstruction X ∗ ( t ) , resulting from the proposed framework, has a bounded noise to signal ratio.
Speciﬁcally, the following inequality is satisﬁed:
[Equation]
where x max is a positive number ∈ [0 , N − 1] that depends on the maximum overlap of the support of component functions f p i ( t − t i ) .
Proof of the Theorem: By hypothesis each kernel K j i produces a spike at time t (cid:48)
i ∀ i ∈ { 1 , ..., N } .
Let us call these spikes as ﬁtting spikes .
But the coding model might generate some other spikes against X ( t ) too.
Other than the set of ﬁtting spikes { ( t (cid:48)
i , K j i ) | i ∈ { 1 , ..., N }} , let { (˜ t k , K ˜ j k ) | k ∈ { 1 , ..., M }} denote those extra set of spikes that the coding model produces for input
X ( t ) against the kernel bag K and call these extra spikes as spurious spikes .
Here, M is the number of spurious spikes.
By Lemma1 X ∗ ( t ) can be represented as below:
[Equation]
where α i and ˜ α k are real coefﬁcients whose values can be formulated again from Lemma1.
Let T i be the thresholds at which kernel K j i produced the spike at time t (cid:48)
i as given in the hypothesis.
Hence for generation of the ﬁtting spikes the following condition must be satisﬁed:
[Equation]
Consider a hypothetical signal X hyp ( t ) deﬁned by the equations below:
[Equation]
Clearly this hypothetical signal X hyp ( t ) can be deemed as if it is the reconstructed signal where we are only considering the ﬁtting spikes and ignoring all spurious spikes .
Since, X hyp ( t ) lies in the span of the shifted kernels used in reconstruction of X ( t ) using Lemma 3 we may now write:
[Equation]
[Equation] t )
[Equation]
( Since by construction (cid:104)
[Equation]
[Equation]
10) ( denote a =
[ a 1 , a 2 , ..., a N ] T , α =
[ α 1 , α 2 , ..., α N ] T ,
F =
[ F ik ] N × N , an N × N matrix, where F ik = (cid:104) f i ( t − t i ) , f k ( t − t k ) (cid:105) and F K =
[( F K )
ik ] NXN where ( F K )
ik = (cid:104)
f i ( t − t i ) , K j k ( t − t (cid:48) k ) (cid:105) )
But using the results of Lemma1 a can be written as: a = P − 1 T where P =
[ P ik ] NXN , P ik = (cid:104)
K j i ( t − t (cid:48) i ) , K j k ( t − t (cid:48) k ) (cid:105)
And, T =
[ T i ] N × 1 where T i = (cid:104) X ( t ) , K j i ( t − t (cid:48) i ) (cid:105) = {+Σ Nk =
 α k+}
[Equation]
f
[Equation]
[Equation]
(cid:105) =
F TK α = ⇒ a = P
[Equation]
1 F TK
[Equation]
Plugging this expression of a in equations 10 we get, |
[Equation]
But, ( F K )
ik = (cid:104)
[Equation] [Equation]
[Equation]
12) ( denoting E K
=
[( E K )
ik ] N × N , where ( E K )
ik = (cid:104)
K j i ( t − t (cid:48) i ) − f i ( t − t i ) , K j k ( t − t (cid:48) k ) (cid:105) )
Also, ( F ) ik = (cid:104)
f i ( t [Equation] t i ) , f k
[Equation]
t
[Equation]
) (cid:105)
[Equation]
Combining 11, 12 and 13 we get,
[Equation]
(Since, P is an SPD matrix, α [Equation]
[Equation]
We seek for a bound for the above expression.
For that we observe the following:
[Equation]
(where x ik ∈ [0 , 1] .
We also note that x ik is close towhen there is not much overlap in the support of the two components and their corresponding ﬁtting kernels.)
[Equation]
Using Gershgorin circle theorem, the maximum eigen value of E :
[Equation]
[Equation]
[Equation]
(where x max ∈ [0 , N − 1] is a positive number that depends on the maximum overlap of the supports of the component signals and their ﬁtting kernels.)
Similarly, the minimum eigen value of F is:
[Equation] [Equation]
assumption
[Equation]
Combining the results from 14, 16 and 17 we get:
[Equation]
Finally using 9 we conclude,
[Equation]