RIDE: Real-time Intrusion Detection via Explainable Machine Learning Implemented in a Memristor Hardware Architecture

Jingdi Chen, Lei Zhang, Joseph Riem, Gina C. Adam, Nathaniel D. Bastian, Tian Lan

Abstract

Network Intrusion Detection Systems (NIDS) face significant challenges in high-speed, low-latency environments like the Internet of Battlefield Things (IoBT), where traditional deep learning models are often too slow, computationally expensive, and lack explainability. This paper introduces RIDE (Real-time Intrusion Detection via Explainable ML), a hardware-software co-designed framework. RIDE utilizes Recursive Autoencoders (RAE) for contextual feature extraction and distills knowledge from complex neural networks into explainable decision trees mapped onto memristor hardware. Experimental results on UNSW-NB15 and CIC-IDS-2017 datasets demonstrate that RIDE achieves microsecond-level inference (20-40 μs) and 99.9% accuracy, representing a four-order-of-magnitude speedup over traditional software-based classifiers while maintaining high energy efficiency.

1. Introduction

Modern communication networks require rapid and interpretable security measures. Traditional NIDS struggle with three main issues: high latency in processing packets, the "black box" nature of deep neural networks (DNNs), and the resource constraints of edge devices. RIDE addresses these by combining efficient feature extraction with hardware-accelerated, explainable machine learning.

2. Methodology

The RIDE pipeline consists of three primary stages: feature extraction, model distillation, and hardware mapping.

2.1 Feature Extraction via Recursive Autoencoders (RAE)

Unlike standard methods that analyze packets in isolation, RIDE employs a hierarchical approach. A standard autoencoder first compresses raw packet payloads. Subsequently, a Recursive Autoencoder (RAE) generates "joint embeddings" that capture the temporal and contextual relationships within a sequence of packets.

The RIDE framework: from packet flows to joint embeddings, DNN distillation, and hardware-mapped decision trees.

2.2 Teacher-Student Distillation

To ensure explainability, RIDE uses a teacher-student training paradigm. A complex DNN (the teacher) is trained on the joint embeddings to achieve high accuracy. This knowledge is then distilled into a Decision Tree (the student). Decision trees provide inherent interpretability, allowing operators to trace the logic behind each classification.

2.3 Memristor Hardware Implementation

The distilled decision trees are mapped onto memristor-based hardware. Memristors enable efficient analog computation, such as voltage comparisons, which are ideal for decision tree nodes. Cost Complexity Pruning (CCP) is applied to optimize the tree size for hardware constraints, balancing accuracy with power and area budgets.

3. Experimental Evaluation

RIDE was evaluated using the UNSW-NB15 and CIC-IDS-2017 datasets, both of which provide the raw packet payload data necessary for RAE-based extraction.

4. Results and Discussion

A key finding is the superiority of joint embeddings over traditional flow-level features. By capturing inter-packet context, RIDE significantly improves detection performance across various attack types.

F1-score comparison showing that packet joint embeddings consistently outperform standard flow features across UNSW and CICIDS datasets.

RIDE achieves an inference time of 20 to 40 microseconds, a 10,000x speedup compared to standard multi-layer perceptron (MLP) software implementations. On the CIC-IDS-2017 dataset, it maintains an accuracy of 99.9%. The hardware implementation, using 11-bit precision for memristor boundaries, consumes only 3.88mW for a 35-node tree, demonstrating extreme efficiency.

5. Conclusion

RIDE demonstrates that hardware-software co-design can overcome the latency and explainability barriers of modern NIDS. Future work will focus on physical prototype fabrication and extending the framework to support more complex non-linear architectures on memristor arrays.

Summary updated

BibTeX
@inproceedings{chen2023ride,
  author = {Jingdi Chen and Lei Zhang and Joseph Riem and Gina C. Adam and Nathaniel D. Bastian and Tian Lan},
  title = {{RIDE: Real-time Intrusion Detection via Explainable Machine Learning Implemented in a Memristor Hardware Architecture}},
  booktitle = {DSC},
  year = {2023},
  doi = {10.1109/dsc61021.2023.10354120},
}

Loading related content...

Figure