Introduction
Modern Connected Autonomous Vehicles (CAVs) rely heavily on Automotive Ethernet to handle high-bandwidth, time-sensitive data like video streams and sensor arrays. However, these networks are vulnerable to cyber-physical attacks, such as Denial of Service (DoS) or malicious flow injection. While Deep Learning-based Intrusion Detection Systems (IDS) are excellent at identifying these attacks, they are typically designed for powerful GPUs. In the real world, automotive Electronic Control Units (ECUs) are highly resource-constrained. For an IDS to be useful in a moving vehicle, it must process network packets in real-time—generally defined as under 1 millisecond ($\le 1$ ms). Standard deep learning models simply cannot process data this fast on cheap edge devices, creating a dangerous gap between theoretical security and practical deployment.
System Architecture and Feature Engineering
The authors developed a pipeline that converts raw network traffic into a format suitable for computer vision models. The process begins with capturing Audio-Video Transport Protocol (AVTP) packets at a network switch.
To prepare the data for the 2D-CNN, the system follows a specific feature generation process. It receives a stream of AVTPDUs, performs byte-by-byte subtraction to highlight changes between consecutive packets, and then splits these differences into nibbles. These nibbles are then arranged into a 2D feature map that represents the temporal and structural characteristics of the network flow.
Optimization Methods for Edge Deployment
The core of this research involves evaluating model compression techniques to bridge the gap between high-accuracy CNNs and low-power hardware like the Raspberry Pi 4 and Nvidia Jetson Nano. The authors compared three primary strategies:
- Pruning & Quantization: They applied polynomial decay pruning to remove up to 90% of the network's less important weights. They then quantized the model using TensorFlow Lite, converting 32-bit floats to 8-bit integers to shrink the model size.
- Knowledge Distillation: This technique uses a large, pre-trained "Teacher" model to train smaller "Student" models. The student learns to mimic the teacher's softened output probabilities. Two student variants were tested: a standard Student (two convolutional layers) and an "Ultra-Light" Student (one convolutional layer and two dense layers).
Experimental Results
The models were evaluated using a real-world AVTP dataset containing both benign traffic and simulated replay attacks. Testing was conducted across a spectrum of hardware, ranging from cloud GPUs to low-cost edge devices.
Key Findings:
- The Distillation Advantage: Knowledge distillation was the only method that successfully crossed the critical 1 ms real-time threshold on low-cost hardware. The Ultra-Light model achieved an inference time of 849.78 µs on the Raspberry Pi 4 and 727.51 µs on the Jetson Nano CPU.
- Pruning Limitations: While pruning and quantization drastically reduced the model's storage footprint, they provided negligible improvements to inference speed on edge CPUs, as the fundamental computational bottlenecks remained.
- Performance Trade-offs: The Ultra-Light distilled model maintained high detection power with an AUROC of 0.9890 and an accuracy of 0.9865. While it lost a small amount of recall compared to the baseline, the 20x speedup makes it far more viable for active prevention in a vehicle.
Conclusion and Future Work
This study demonstrates that advanced cybersecurity can run on budget-friendly automotive hardware through strategic model distillation. By prioritizing inference speed over marginal accuracy gains, the authors achieved real-time performance on devices previously considered too weak for deep learning IDS. Future research will focus on "early exit" architectures to further optimize speed and validating these models against adversarial attacks in physical vehicular networks.
Summary updated