Direct Current Feature Injection and Adaptive Dynamic Thresholding for Intrusion Detection using Leaky Integrate-and-Fire Neurons
Year: 2026
Type: preprint
Abstract: Intrusion detection systems deployed at the network edge should detect attacks accurately under severe class imbalance while operating within tight energy budgets. Spiking neural networks (SNNs) offer event-driven, low-power, and sparse computation. However, their accuracy is limited by three factors: lossy spike encoding of real-valued traffic features, uncontrolled firing under fixed thresholds, and poorly separable input representations. This paper proposes an SNN-based intrusion detection model that resolves the mentioned limitations. First, a class-aware discriminative autoencoder, trained with a staged schedule of reconstruction pre-training, decoder freezing, and class-weighted fine-tuning, maps PCA-reduced traffic features to compact embeddings that preserve minority-class structure. Second, these embeddings are injected directly as constant membrane currents into leaky integrate-and-fire (LIF) neurons, removing the explicit neural encoding overhead. Third, each LIF neuron uses an adaptive dynamic threshold, driven by its membrane activity and recent spike history, bounded between [0.5, 2.0], which suppresses excessive firing. The network is trained end-to-end with surrogate gradients and backpropagation through time. On NSL-KDD, the proposed model reaches 93.35\% accuracy, a macro F1-score of 0.93, and an AUC of 0.966. Compared with a rate-encoded, fixed-threshold SNN baseline, it improves accuracy by 5.2\% points, lowers the false-positive rate from 8.4\% to 5.1\%, and nearly halves missed attacks (13.9\% to 7.6\%). These results show that direct feature injection combined with adaptive thresholding is a practical route to accurate, energy-aware intrusion detection on neuromorphic and edge hardware.
Source: Research Square
Authors: Irshed Hussain, Vikash Kumar
Language: English
Subfield: Computer Networks and Communications
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7225913469
