Abstract
Keyword spotting (KWS) is a critical component for "always-on" edge devices, yet it faces significant power constraints. This paper introduces a Spiking Neural Network (SNN) architecture utilizing a novel Temporal Difference Encoder (TDE) neuron model. By encoding spatio-temporal features through spike timing rather than recurrence, the proposed TDE network achieves 89% accuracy on the TIdigits dataset. Crucially, it performs 92% fewer synaptic operations than standard recurrent SNNs, offering a highly efficient solution for low-power neuromorphic hardware.
Introduction
The ubiquity of voice-activated IoT devices, such as smartwatches and hearing aids, has made efficient keyword spotting (KWS) a priority. Traditional Artificial Neural Networks (ANNs) are computationally expensive for continuous monitoring. While Spiking Neural Networks (SNNs) offer a more energy-efficient alternative by processing data only when spikes occur, they typically rely on complex recurrent connectivity to capture the temporal nature of speech. This recurrence introduces significant memory and computational overhead.
This research explores whether a specialized neuron model can inherently understand temporal patterns without the need for recurrent loops. We propose the use of the Temporal Difference Encoder (TDE), a neuron designed to act as a coincidence detector, to build a feedforward SNN capable of high-performance speech recognition.
Methodology
The Keyword Spotting Pipeline
The proposed system follows a multi-stage pipeline: speech acquisition, formant decomposition, and classification via an SNN.
Formant Decomposition
Instead of using raw audio or standard spectrograms, the system utilizes "formants"—the resonance frequencies of the human vocal tract. Using a sinewave speech analysis toolbox, the three primary formants are extracted and mapped into 32 frequency channels. These channels are then converted into spike trains, where the timing of each spike represents the presence of specific spectral features.
The Temporal Difference Encoder (TDE)
The core innovation is the TDE neuron in the hidden layer (L1). Unlike standard Leaky Integrate-and-Fire (LIF) neurons, the TDE features two distinct input ports: a facilitatory input and a trigger input (represented by the red and blue dots in the architecture diagram).
The TDE generates an output spike based on the time difference between signals arriving at these two ports. This mechanism allows a single neuron to encode specific sequences, such as "frequency A followed by frequency B after a 20ms delay." This inherent temporal sensitivity eliminates the need for recurrent connections within the network.
Training and Optimization
The network was trained using the TIdigits dataset (digits 0-9 and "oh"). Training employed Back-Propagation Through Time (BPTT) with surrogate gradients to overcome the non-differentiable nature of spikes. To further enhance efficiency, a data-driven pruning approach was applied, removing 45.5% of the least correlated TDE neurons with only a 1.22% loss in accuracy.
Results and Discussion
Performance and Efficiency
The TDE-based network demonstrates a superior balance between accuracy and computational cost. It achieved an accuracy of 89%, outperforming a standard feedforward LIF network (71%) and nearly matching the performance of a complex recurrent LIFrec model (91%).
The primary advantage lies in efficiency:
- Synaptic Operations (SynOps): The TDE network performed 92% fewer SynOps than the recurrent model.
- Spike Activity: The network generated 53% fewer spikes overall.
- Data Efficiency: The TDE architecture maintained higher robustness when trained on reduced datasets (25% of original size) compared to recurrent alternatives.
Interpretability and Robustness
Unlike "black box" deep learning models, the TDE network is highly interpretable. Each hidden neuron is tuned to a specific pair of frequencies and a specific time delay, allowing researchers to map the network's internal logic directly to phonetic features. Information-theoretic analysis confirmed that spike timing in this range (15–20 ms) carries significantly more information for speech than simple firing rates.
Conclusion
The use of spike-based Temporal Difference Encoders represents a significant step toward ultra-low-power keyword spotting. By replacing recurrence with specialized temporal neurons, we achieve near-state-of-the-art accuracy with a fraction of the energy cost. Future work will focus on integrating the formant extraction stage into neuromorphic hardware and scaling the architecture to handle larger, continuous speech vocabularies.
Summary updated