Encoding Event-Based Data With a Hybrid SNN Guided Variational Auto-encoder in Neuromorphic Hardware

Kenneth Michael Stewart, Andreea Danielescu, Timothy M. Shea, Emre Neftci

Introduction

Neuromorphic sensors, such as Dynamic Vision Sensors (DVS), mimic the human retina by reporting pixel-wise intensity changes as asynchronous events. While these sensors offer extreme power efficiency and high temporal resolution, their sparse data format is challenging for traditional computer vision algorithms. Spiking Neural Networks (SNNs) have emerged as a natural fit for processing this data, yet they typically rely on supervised learning, which requires vast amounts of labeled data—a luxury rarely available in real-world edge applications.

This paper, presented at NICE 2022, addresses this gap by proposing a Hybrid Guided Variational Auto-encoder (VAE). The system combines the temporal processing strengths of SNNs with the unsupervised representation learning capabilities of VAEs. This architecture enables robots and edge devices to cluster similar inputs and adapt to new, unlabeled classes in real-time, providing a pathway for more autonomous neuromorphic systems.

Architecture and Methodology

The core of the proposal is a hybrid architecture designed to disentangle meaningful features from environmental noise.

The Hybrid Guided-VAE architecture featuring an SNN encoder, a disentangled latent space, and a CNN decoder for time-surface reconstruction.

SNN Encoder

The encoder consists of a four-layer convolutional SNN utilizing Leaky Integrate-and-Fire (LIF) neurons. It processes the raw event stream directly, acting as a temporal bridge that translates microsecond-scale spikes into meaningful features. By operating on the raw stream, it captures motion dynamics that traditional frame-based networks often miss.

Guided Disentanglement

The latent space is split into two distinct components: $z_m$ (guided to represent class labels) and $z_{\setminus m}$ (capturing "nuisance" variables like lighting or user variance). Through an adversarial training strategy, the model is forced to disentangle these features, ensuring that the classification-relevant embeddings remain robust across different environments.

ANN Decoder

To optimize training, the researchers utilized a conventional Artificial Neural Network (ANN) decoder. Rather than reconstructing the raw event stream, the network learns to reconstruct Time Surfaces—2D representations where pixel intensity indicates the recency of events. Using an ANN for the decoder saves significant computational resources during the training phase while still allowing the SNN encoder to learn high-quality features.

Experimental Setup

The model was evaluated across three distinct benchmarks:

  1. NMNIST: A spiking version of the classic handwritten digit dataset.
  2. IBM DVSGesture: A dataset featuring 29 individuals performing 10 different gestures under four varying lighting conditions.
  3. Novel Gestures: To test generalization, the authors recorded custom "Right Swipe Down" and "Left Swipe Down" gestures using a DAVIS 240C sensor. These classes were entirely absent from the initial training data.

Results and Discussion

The Hybrid Guided-VAE demonstrated high performance and significant robustness. It achieved 87% test accuracy on the DVSGesture dataset and 98.2% on NMNIST. Ablation studies confirmed that the "Guided" mechanism is critical; without it, classification accuracy from the latent space plummeted to 38.3%.

t-SNE visualization of the latent space showing how novel gestures (black dots) naturally cluster near similar known gesture classes.

A key insight of the study is the model's ability to perform "pseudo-labeling." Because the latent space is organized by similarity, novel gestures naturally cluster near known categories with similar motion profiles. For instance, a new "swipe down" gesture clustered near known "hand wave" gestures. This allows a system to categorize unknown inputs autonomously before any human intervention occurs.

Finally, the encoder was successfully mapped to Intel’s Loihi neuromorphic chip. While the authors noted a slight drop in accuracy due to the chip's low-precision integer constraints, the deployment proves that the most computationally intensive part of the pipeline—processing the event stream—can run on ultra-low-power hardware.

Conclusion

The Hybrid Guided-VAE represents a significant step toward unsupervised learning on the edge. By disentangling class features from environmental noise and leveraging SNNs for temporal processing, the system achieves high accuracy and the ability to handle novel data. Future work will focus on quantization-aware training to improve Loihi performance and the development of fully spiking VAE architectures for end-to-end neuromorphic generation.

Summary updated

BibTeX
@inproceedings{stewart2022encoding,
  author = {Kenneth Michael Stewart and Andreea Danielescu and Timothy M. Shea and Emre Neftci},
  title = {{Encoding Event-Based Data With a Hybrid SNN Guided Variational Auto-encoder in Neuromorphic Hardware}},
  booktitle = {NICE},
  year = {2022},
  doi = {10.1145/3517343.3517372},
}
Figure