LaneSNNs: Spiking Neural Networks for Lane Detection on the Loihi Neuromorphic Processor

Alberto Viale, Alberto Marchisio, Maurizio Martina, Guido Masera, Muhammad Shafique · DOI

Introduction

Autonomous Driving (AD) systems demand high-speed, real-time decision-making capabilities within extremely constrained power budgets. Conventional Deep Neural Networks (DNNs) deployed on high-performance GPUs have set the standard for accuracy in tasks like lane detection; however, their significant power consumption and heat generation present substantial integration challenges for standard automotive Electronic Control Units (ECUs).

This research introduces LaneSNNs, a suite of Spiking Neural Networks (SNNs) specifically optimized for the Intel Loihi neuromorphic processor. By leveraging event-based (DVS) cameras and the inherent efficiency of neuromorphic hardware, LaneSNNs achieve competitive lane detection performance with a power footprint of approximately 1W and latencies under 8ms.

The Neuromorphic Approach

Traditional computer vision relies on frame-based cameras that capture data at fixed intervals, often processing redundant information. In contrast, Dynamic Vision Sensors (DVS) or event-based cameras only record changes in pixel-level illumination. This asynchronous data stream is a natural fit for Spiking Neural Networks, which process information through discrete temporal events (spikes) rather than continuous activations.

The primary challenge addressed in this work is the design and optimization of SNN architectures that can be effectively mapped onto specialized neuromorphic hardware like Intel Loihi, which imposes strict physical limits on neuron counts and connectivity.

Methodology and Architecture

The researchers developed four distinct LaneSNN variants to explore the trade-offs between model complexity and hardware efficiency: one convolutional SNN (CNN LaneSNN) and three fully-connected variants (Fully-C600, Fully-C800, and Fully-C800600). These models are designed for semantic segmentation, where the network classifies each pixel as either "lane" or "background."

Hybrid Loss Function

Lane detection is characterized by a severe class imbalance, as lane markings occupy a tiny fraction of the total image area. To address this, the authors implemented a novel hybrid loss function combining:

  • Weighted Binary Cross Entropy (WCE): To penalize misclassifications of the minority lane class more heavily.
  • Mean Squared Error (MSE): To stabilize the training process and accelerate convergence for spiking neurons.

Training and Hardware Mapping

The networks were trained offline using Spatio-Temporal Back-Propagation (STBP) with surrogate gradients to overcome the non-differentiable nature of discrete spikes. Following training, weights were quantized and mapped to the Loihi chip using the NxTF library. Input data from the dataset was converted into Poisson-distributed spike trains (rate coding) to facilitate processing by the SNN.

Experimental Setup

The study utilized the DET dataset, featuring high-resolution (1280 x 800) event-based data from a CeleX V DVS camera. Due to the hardware constraints of the Loihi processor—specifically the limitation on output spike counters—the researchers implemented strategic pre-processing:

  • Cropping and Resizing: Irrelevant regions (sky and vehicle hood) were removed, and labels were resized to a 40x10 resolution.
  • Data Augmentation: Random vertical translation and rotation were employed to mitigate overfitting on the relatively small training set of 271 images.

Key Results and Insights

The evaluation of LaneSNNs demonstrates that neuromorphic hardware can compete with traditional deep learning architectures in specialized edge tasks.

  • Competitive Accuracy: The models achieved a maximum Intersection over Union (IoU) of 0.62, comparable to established non-spiking models like LaneNet.
  • Extreme Efficiency: The Intel Loihi chip consumed only ~1W during inference, a fraction of the power required by traditional GPUs.
  • Real-Time Performance: The "Fully-C800" model reached a latency of 7.27ms per image, supporting frame rates exceeding 100 FPS.
  • Hardware Footprint: The Fully-C600 model occupied only 36 of Loihi's neurocores, suggesting that the remaining hardware resources could be utilized for concurrent tasks such as object detection or path planning.

Discussion and Limitations

While LaneSNNs prove the viability of end-to-end neuromorphic lane detection, several challenges remain. The current output resolution (40x10) is sufficient for basic positioning but may lack the granularity required for complex maneuvers or long-range detection. Furthermore, the researchers noted a "translation loss"—a performance drop when moving from offline GPU simulations to online hardware execution (e.g., the CNN IoU dropped from 0.598 to 0.208). This is largely attributed to weight approximation errors during the quantization and mapping process.

Conclusion

LaneSNNs demonstrate that hardware-software co-design can produce highly efficient, low-latency solutions for autonomous vehicle sub-tasks. By avoiding complex post-processing and utilizing the sparse nature of event-based data, LaneSNNs provide a blueprint for future low-power automotive AI. Future work will focus on utilizing Loihi’s on-chip learning capabilities to allow the network to adapt to changing environmental conditions in real-time.

Summary updated

BibTeX
@inproceedings{viale2022lanesnns,
  author = {Alberto Viale and Alberto Marchisio and Maurizio Martina and Guido Masera and Muhammad Shafique},
  title = {{LaneSNNs: Spiking Neural Networks for Lane Detection on the Loihi Neuromorphic Processor}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=I0uZJ7313Z},
}
Figure