# An Adaptive Sampling and Edge Detection Approach for Encoding Static Images for Spiking Neural Networks

arXiv: https://arxiv.org/abs/2110.10217 · HTML: https://mlsanity.com/paper/2110.10217/

## Key facts

- Cited by 4 papers in the map (data through 14 Oct 2026).
- Builds on 3 of its 18 references that are in the map.
- First posted on arXiv 19 Oct 2021.

## Builds on (most cited first, 3 of 3)

- [Going Deeper in Spiking Neural Networks: VGG and Residual Architectures](https://mlsanity.com/paper/1802.02627/) (2018)
- [Direct Training for Spiking Neural Networks: Faster, Larger, Better](https://mlsanity.com/paper/1809.05793/) (2018)
- [Deep Convolutional Spiking Neural Networks for Image Classification](https://mlsanity.com/paper/1903.12272/) (2019)

## Built on by (most cited first, 4 of 4)

- [Efficient Federated Learning with Spike Neural Networks for Traffic Sign Recognition](https://mlsanity.com/paper/2205.14315/) (2022)
- [Realtime Facial Expression Recognition: Neuromorphic Hardware vs. Edge AI Accelerators](https://mlsanity.com/paper/2403.08792/) (2024)
- [Energy-Efficient Deployment of Machine Learning Workloads on Neuromorphic Hardware](https://mlsanity.com/paper/2210.05006/) (2022)
- [QDS-SNN: Energy-efficient Quantum Deeply-Supervised Spiking Neural Network Algorithm for Traffic Sign Recognition](https://mlsanity.com/paper/2606.07657/) (2026)

## Abstract (arXiv)

Current state-of-the-art methods of image classification using convolutional neural networks are often constrained by both latency and power consumption. This places a limit on the devices, particularly low-power edge devices, that can employ these methods. Spiking neural networks (SNNs) are considered to be the third generation of artificial neural networks which aim to address these latency and power constraints by taking inspiration from biological neuronal communication processes. Before data such as images can be input into an SNN, however, they must be first encoded into spike trains. Herein, we propose a method for encoding static images into temporal spike trains using edge detection and an adaptive signal sampling method for use in SNNs. The edge detection process consists of first performing Canny edge detection on the 2D static images and then converting the edge detected images into two X and Y signals using an image-to-signal conversion method. The adaptive signaling approach consists of sampling the signals such that the signals maintain enough detail and are sensitive to abrupt changes in the signal. Temporal encoding mechanisms such as threshold-based representation (TBR) and step-forward (SF) are then able to be used to convert the sampled signals into spike trains. We use various error and indicator metrics to optimize and evaluate the efficiency and precision of the proposed image encoding approach. Comparison results between the original and reconstructed signals from spike trains generated using edge-detection and adaptive temporal encoding mechanism exhibit 18x and 7x reduction in average root mean square error (RMSE) compared to the conventional SF and TBR encoding, respectively, while used for encoding MNIST dataset.
