Manuscript Offprint
arXiv:2610.07489Deep Defence on Wheels: A Dual Intrusion Detection System Architecture for Comprehensive In-Vehicle Network Security
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
SHASHWAT KHANDELWAL and SHANKER SHREEJITH , Trinity College Dublin, Ireland
The combination of increasing connectivity to the outside world and the lack of inbuilt security mechanisms has made legacy intra-vehicular networks extremely vulnerable to cyberattacks. Consequently, significant research has been devoted to analysing the impact of potential attacks, yielding datasets crucial for developing effective mitigation schemes like intrusion detection and prevention systems (IDSs/IPSs). Initial research addressing this problem focused heavily on maximising attack detection accuracy (for both known and unknown attack vectors), often relying on large, full-precision machine learning models. However, embedding IDS into complex vehicular electronic systems adds challenges beyond accuracy, including the need for low detection latency (e.g., 2,000 CAN frames/sec), energy efficiency, and minimal overhead in electronic control unit (ECU) resources like silicon area, memory, and processor use. To address these deployment constraints, recent research has focused on lightweight machine learning models that balance high classification accuracy with these practical limitations. In this work, we propose a dual IDS framework comprising both supervised and unsupervised learning-based solutions, each optimised for real-time, resource-constrained deployment on embedded automotive platforms. We present a quantised LSTM-based IDS (QLSTM-IDS) that achieves over 99.9% detection accuracy across various attack types: DoS/Flooding, Fuzzing, and Spoofing/Malfunction, using a single model and two widely-used datasets. The model is trained using the brevitas quantisation aware training library, transformed into a dataflow accelerator with custom blocks compatible with AMD's FINN toolchain, and synthesised using Vitis HLS. Complementing this, we introduce an 8-bit quantised convolutional autoencoder-based IDS (QCAE-IDS) for detecting previously unseen anomalies that alter CAN-ID sequence patterns, with >99% accuracy. QCAE-IDS is quantised using AMD's Vitis-AI toolchain. We detail an integration architecture enabling both IDS models to operate on a single FPGA device, bridging the network interface IP and processor system to minimise software overhead. QLSTM-IDS achieves 0.25ms inference latency and 0.8mJ energy consumption, while QCAE-IDS achieves 0.42ms latency and 1.1mJ energy, supporting real-time, efficient detection of both known and unknown attacks on high-speed CAN buses. Both solutions are deployed and evaluated on the ZCU104 SoC (XCZU7EV FPGA), demonstrating a robust, flexible hardware/software co-design for securing modern vehicular networks.
CCS Concepts: • Embedded and cyber-physical systems; • Real-time systems; • Intrusion/anomaly detection and malware mitigation; • Network security; • Quantised Machine Learning;
Additional Key Words and Phrases: Intrusion Detection Systems, Intra-Vehicular Networks, Quantised LSTMs, Autoencoders, Unseen-attack detection, CAN-ID sequence modelling, Controller Area Network
ACM Reference Format:
Shashwat Khandelwal and Shanker Shreejith. 2026. Deep Defence on Wheels: A Dual Intrusion Detection System Architecture for Comprehensive In-Vehicle Network Security. J. ACM 1, 1 (November 2026), 30 pages. https://doi.org/10.1145/nnnnnnn.nnnnnnn
Both authors contributed equally to this research.
Authors' Contact Information: Shashwat Khandelwal, khandels@tcd.ie; Shanker Shreejith, shankers@tcd.ie, Trinity College Dublin, Dublin, Dublin, Ireland.
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
ACM 1557-735X/2026/11-ART
https://doi.org/10.1145/nnnnnnn.nnnnnnn
Khandelwal et al.
1 Introduction
In-vehicle networks in modern vehicles enable distributed electronic control units (ECUs) to exchange control and data messages to achieve the global functions of the vehicle. Multiple protocols are used in vehicular systems to cater to different functions based on their criticality and to optimise the cost of electric/electronic (E/E) systems. The Controller Area Network (CAN), due to its low cost and robustness, continues to be the standard network protocol for carrying out both critical and non-critical communication in vehicles. Despite its popularity, CAN protocol is inherently insecure and lacks any built-in mechanisms to authenticate the transmitter, receiver, or message content [6]. CAN nodes are unable to verify the origin of messages intended for them; for instance, a data frame conveying engine stoppage information could originate from the infotainment ECU and still be accepted as valid. This absence of authentication renders CAN highly susceptible to attacks such as message sniffing, fuzzing, spoofing, replay attacks, and Denial-of-Service (DoS) attacks [15, 27, 32, 35]. Additionally, CAN utilises a broadcast-based transmission mechanism, allowing any attacker who gains control of any node on the network to send harmful frames to any other node. The broadcast nature also exposes CAN to passive sniffing attacks, where an attacker can surreptitiously capture all transmitted frames, including sensitive data, and subsequently use this information to execute replay attacks or more targeted spoofing attacks, which are particularly difficult to detect. These sniffing attacks are relatively straightforward to perform, as CAN communication is unencrypted, making it easy for attackers to access and interpret critical network information. Notably, these attacks do not require physical access to the vehicle, which can be largely attributed to the increased connectivity of vehicles to the outside world and diagnostic requirements that bridge different in-vehicle networks, which, in turn, expose internal CAN bus data to the outside world. The relative ease of launching such attacks and the widespread acceptance of CAN as the protocol of choice for vehicular systems have made the detection of such attacks/intrusions an area of crucial interest in the research community for the past few years.
Various types of intrusion detection systems (IDSs) have been extensively explored in the research literature, including rule-based and entropy-based approaches. More recently, machine learning (ML) techniques based on both supervised (for detecting known attacks) and unsupervised learning (for detecting unknown attacks) have demonstrated significant success in identifying attack vectors on CAN [8, 31, 46, 59]. In particular, ML-based IDSs are favoured due to their generalisable nature, which has been shown to yield higher accuracy compared to traditional rule-based systems. However, most ML-based IDSs predominantly focus on detection accuracy across various attacks as their primary evaluation metric and strive to push this metric further. While this is an important factor, the deployment of ML-based IDSs in vehicular networks must also address other critical constraints, such as detection latency and energy consumption. High-speed CAN networks in critical E/E systems can exchange over 2000 messages per second on average [46]. Consequently, the IDS must be capable of processing these messages with minimal detection latency to ensure timely responses to such threats, while consuming limited energy. Excessive energy consumption is another critical factor that can hinder the scalability and feasibility of IDS deployment across multiple ECUs simultaneously, thus limiting its practical application. Recent research has increasingly focused on these deployment challenges, leveraging techniques such as network pruning and quantisation to optimise the performance of ML models in these contexts [12, 22, 24, 25, 38, 59]. Given the continuously evolving vehicular applications and the deployment constraints inherent in E/E systems (such as traditional ECUs), IDS solutions should ideally be capable of performing for both known (multi-class) and unknown attack classification with high detection accuracy, preferably on a single device (such as a gateway ECU). This feature enables the consolidation of attack detection into a limited number of ECUs, as opposed to deploying multiple IDSs for each specific attack vector.
and previously unseen attacks. However, many IDSs in the literature either lack the computational efficiency for per-message classification, cannot simultaneously detect multiple attack vectors due to limited model capacity, or are incapable of identifying unknown attacks.
In this paper, we propose a concurrent dual-IDS system for CAN comprising both a supervised and an unsupervised learning (SL & UL) model, which has been optimised for deployment on resource-constrained vehicular ECUs. The SL model is a quantised Long Short-Term Memory (QLSTM) based IDS, designed for accurate, real-time per-message classification of multiple attack vectors. Complementing this is an 8-bit quantised convolutional autoencoder (QCAE)-based IDS, an UL solution capable of identifying unknown attacks in vehicular networks. The QLSTM model learns ordered dependencies among the fields within individual CAN frames for supervised attack classification, while the QCAE model learns normal patterns in sequences of CAN identifiers without attack labels to identify anomalous message blocks. The models were compressed through custom-precision quantisation and pruning for deployment on AMD's Zynq UltraScale+ ZU7EV heterogeneous SoC, which combines FPGA programmable logic for hardware acceleration with an ARM-based processing system for system control and data movement, mimicking an extensible ECU system (for example, a gateway device). The precision optimisation for the models ensures a low-latency, low-energy intrusion detection architecture that can be accelerated on the FPGA fabric and coupled closely with the CAN network interface. The following are the major contributions of the paper:
• We propose a quantised LSTM-based intrusion detection system (QLSTM-IDS) for CAN networks that performs per-message multiclass classification and detects multiple attack vectors using a single model.
• We complement the supervised classification of known attacks with an unsupervised, quantised convolutional autoencoder (QCAE-IDS), trained exclusively on benign traffic to detect anomalous CAN-ID sequences that are absent from model training.
• We present a tightly coupled hardware/software dual-IDS architecture that integrates both models with the CAN interface on a single FPGA-based SoC, thereby reducing data-movement and software overheads while satisfying the line-rate processing and energy constraints of in-vehicle deployment. To the best of our knowledge, this is among the first hardware-deployed CAN IDS frameworks to concurrently combine known-attack classification with anomalous sequence detection under real-world deployment constraints.
• We evaluate QLSTM-IDS using two widely adopted real-world automotive attack datasets, the Car Hacking and Survival Analysis datasets on which it achieves an average classification accuracy exceeding 99.9% across the evaluated attack vectors.
• We evaluate the per-message detection latency and energy consumption of QLSTM-IDS against existing IDS implementations reported in the literature. Relative to the most directly comparable per-message classification approach, QLSTM-IDS achieves a reduction in detection latency while consuming 0.8 mJ per message-level inference.
• We evaluate QCAE-IDS on two vehicle subsets of the Survival Analysis dataset, achieving an accuracy exceeding 99%. Compared with our previous QCAE implementation, the proposed model maintains comparable per-block processing latency while improving energy efficiency by 1.9×, with an energy consumption of 1.1 mJ per block-level inference.
Additionally, we have open-sourced the training scripts, hardware build files, and deployment scripts of the QLSTM-IDS in a publicly accessible GitHub repository https://github.com/RCSL-TCD/QLSTM-IDS.
The rest of the paper is organised as follows: Section 2 describes the background on CAN and the various types of IDSs (SL & UL based) proposed for it in the research literature; Section 3 discusses
Khandelwal et al.
the proposed models along with datasets information and their integration architecture within the ECU; Section 4 discusses the results obtained and comparison with the state-of-the-art IDS/IPS proposed in the literature and Section 5 concludes the paper.
2.1 Controller Area Network
CAN [49] and CAN-FD [18] continue to be the most widely used communication protocols in modern vehicles due to their lower cost, flexibility and robustness. CAN bus is implemented physically using the twisted pair cable. It is also used in other environments (e.g., controlling elevators in buildings, building energy management systems), railway applications, medical devices, and aircraft systems, among others. Figure 1 illustrates the bit-field definition of a CAN data frame. Each segment within the frame structure provides a specific function in the network operation. The start of frame (SOF) bit indicates the start of a new message, remote transmission request (RTR) bit is used to request information from another ECU, the acknowledge (ACK) field is used to indicate errors in frame and the cyclic redundancy check (CRC) field carries a CRC value to detect bit-errors during transmission. Four types of CAN frames exist depending on their functionality. These are as follows:
- Data frame: The only frame among the four used for actual data transmission between nodes. The length of the payload in a CAN data frame varies from 0 to 8 bytes.
– Base frame format : The identifier length is 11-bits.
– Extended frame format : The identifier length is 29-bits (11{base identifier}+18{identifier extension}).
The distinction between the CAN base and extended frame formats is specified by the IDE bit, which, when transmitted as dominant ('0'), indicates a base frame and a recessive ('1') indicates an extended frame.
- Remote frame: It is also possible for a node to request information from another node in the network. This is achieved with the help of a remote frame. There are two differences between data and remote frames as follows:
– The RTR bit is transmitted as a dominant bit in a data frame and as a recessive bit in the remote frame.
– The remote frame does not have a payload field, which is indicated by a ‘0’ value in the DLC field.
-
Error frame: Error frames are broadcast to all nodes to indicate erroneous conditions in the network or the previous data frame. Five error types are defined in the CAN specification, namely bit error, stuffing error, CRC error, form error and ACK error.
-
Overload frame: This frame is used when a delay needs to be injected between a data frame and a remote frame.
The CAN ID is a unique identifier assigned to each message. The CAN protocol uses the ID bits to define the priority of the message for transmission on the shared bus via the Carrier Sense Multiple Access with Collision Avoidance and Arbitration Priority (CSMA/CA-AP) access mechanism. When receiving, each ECU uses the ID bits to determine if the message needs to be processed by it or ignored. CAN also supports multiple network speed configurations with high-speed CAN varying between 125 kbps to 1 Mbps (maximum speed on standard CAN) and low-speed CAN using data rates between 5 kbps to 125 kbps. CAN supports a maximum payload size of 8 bytes per message in either configuration. This flexibility allows CAN to cater to both safety-critical functions (using
| 1 bit SOF | 29 bit CAN ID | 1 bit RTR | 6 bit Control | 0-64 bit Data | 16 bit CRC | 2 bit ACK | 7 bit EOF |
Fig. 1. Frame format of an extended frame CAN message. In case of a standard CAN message, the ID field contains the 29-bit identifier.
high-speed CAN) and non-critical capabilities with a more cost-efficient low-speed CAN. CAN-Flexible Data-rate (CAN-FD) expands on standard CAN with an improved data rate to 8 Mbps and larger payload support of up to 64 bytes, while being backwards compatible with standard CAN.
2.2 IDSs for CAN
2.2.1 Early Works. Researchers have explored various techniques to detect intrusions in the CAN bus. These can be broadly classified into flow-based, payload-based, and hybrid schemes that combine the two [3]. Flow-based approaches extract identifiable traits like message frequency and/or interval for the network and use these to determine abnormal activity on the network [29, 52]. Payload-based schemes use the information in the CAN frames to detect abnormal sequences of instructions or data [33, 47]. The hybrid schemes use both the timing information and the CAN frame fields to create a more holistic view, allowing them to extract specific signatures of transmitting ECUs, receiving ECUs, and messages [51, 53, 56]. For instance, the fingerprint-based approach uses low-level electrical signal levels and timing of signals combined with the message contents to identify potential intrusions when large deviations are observed [9, 10]. Parameter monitoring-based techniques extract the message-level frequency and timing characteristics for different fields or specific messages, like offset ratio and timing in case of a remote transmission frame, to identify potential intrusions [28]. Researchers have also proposed the use of entropy of the network traffic as a method to identify abnormal conditions and intrusions [55]. While the rule-based, flow-based and hybrid techniques offer promising performance, they have been superseded by generalised machine learning techniques, including classification approaches, deep learning-based schemes, and sequential techniques, which are discussed below.
2.2.2 Machine Learning based IDSs. Most ML-based approaches fall under the hybrid scheme and utilise both the message content and its timing/frequency characteristics to achieve better detection. Tree-based approaches explored by [58] use CAN IDs and data segment contents as input features to tree-based classifiers like decision trees, random forests, and others. In [46], the authors propose a reduced inception net architecture for IDS, which uses deep convolutional neural networks. The authors show that their CNN architecture can achieve over accuracy across DoS, fuzzing, and spoofing attacks. The authors used a dataset captured from the actual vehicle for training and testing their model, which has also been shared with the community for further research (Open Car Hacking dataset). Since the dataset covers multiple attack modes with actual CAN messages in a real-world setting, it is one of the datasets that we used to train and evaluate our proposed model. Recently, more complex ML architectures such as temporal convolution with global attention [8], gated recurrent unit (GRU) networks [31], and CNN-based temporal dependency approaches have been shown to further push the detection accuracy. In [11], authors proposed a two-step IDS using a hybrid LSTM+CNN network, where the first step identifies if the message is an attack and the second step classifies the type of attack. In [34], the authors proposed a transformer network-based IDS and used batches of CAN IDs to detect attacks on multiple datasets. While high accuracy has been obtained, the batch-based processing and high computational cost of transformer-based
Khandelwal et al.
networks restrict their applicability for in-vehicle deployment. In [12], the authors proposed iForest, which uses an anomaly detection algorithm as an intrusion prevention system (IPS) to detect fuzzing and spoofing (RPM & Gear) attacks and trigger the transmission of an error frame, preventing its propagation to other ECUs. However, with higher false positives (or in case of DoS attacks, which iForest has not been validated against), this can cause multiple messages to be dropped from the bus, leading to a partial or total loss of critical functionality.
In addition to SL-based IDSs, multiple UL-based IDSs with the capability of detecting unknown attacks have been presented in the research literature. In [16], the authors proposed the use of stacked autoencoders and GMMs as IDSs trained only on benign messages. However, their approach results in accuracy < 80%, making their model less suited for deployment. In [59], the authors proposed a stacked anomaly-based IDS for detecting unknown attacks and reported a slightly lower average F1 score of 96.3% on the attacks included in the CH dataset. In [2], the authors proposed an unsupervised learning-based CNN+LSTM autoencoder architecture for incoming message reconstruction and classifying them as benign and attacks using thresholding techniques. The authors demonstrated that their system can achieve a high detection accuracy of 99.9% across all attacks, while incurring higher message processing latency, making their solution unsuitable for real-time detection. In [4], authors proposed the use of extreme gradient boosting machine learning algorithm to categorise unexpected occurrences in the CAN data payload. They reported accuracies > 99% on the SA attack dataset. In [19], authors proposed an LSTM-based IDS to detect and mitigate the CAN bus network attacks and achieve accuracies > 99.9% on the CH and SA attack datasets. In one of our prior works [23], we presented an UL-based convolutional autoencoder trained on the open car hacking dataset, which achieved detection accuracy of > 99.5% with near-real-time attack detection when deployed on an FPGA-based ECU. We arrived at a more optimal variant of the model in this work, a choice that was also inspired by other works in the literature that have explored UL-based IDS models.
Table 1 shows a comparison of these different techniques in terms of classification capabilities (known & unknown attack detection), tested on single or multiple datasets, the input features used and whether they report deployment statistics such as processing latency and energy consumption. In the case of the majority of works reported in the literature (for both SL- and UL-based models), inference models are accelerated on high-performance GPUs to achieve high-throughput detection, while also measuring processing latency in large batch-style operations when testing with CAN datasets. In contrast, our approach aims to integrate IDS accelerators as standard peripherals within a traditional ECU's dataflow and to process messages in an event-driven paradigm (when they arrive). By compressing the models through quantisation, we can combine their high accuracy with significantly lower power consumption compared to conventional GPU-based implementations, while achieving the required throughput using clever integration methods.
Many research works have explored quantised neural networks (QNNs) as a way to reduce the computational complexity of ML-based IDS [24, 26]. It has been shown that QNNs can maintain high attack classification accuracy (due to improved training tools) while reducing computational, memory and energy requirements significantly. In [38], the authors introduced a hierarchical two-stage IDS based on a binarised neural network (BNN) and generative adversarial network (GAN). The authors demonstrated reduction in detection latency and energy consumption achieved by their IDS. However, their model relied solely on using CAN IDs as input features, making the IDS vulnerable to attacks that alter only the payload of CAN frames such as spoofing and replay attacks. In one of our previous works [22], we showed that quantised multi layer perceptrons (MLPs) can be deployed as a multi-class classification IDSs by utilising a conservative labelling technique to enhance model convergence across multiple attack types.
Table 1. The table summarises the input features utilised by various IDS/IPS approaches, along with their per-message processing capabilities, support for multi-class attack classification, evaluation across multiple datasets, ability to detect unknown attack vectors and whether they report deployment metrics such as latency and energy consumption.
| Models | Input Features | Per-Message | Multi-Class | Multi-Datasets | Unknown | Latency | Energy |
|---|---|---|---|---|---|---|---|
| GIDS [41] | ID | ✕ | ✓ | ✕ | ✓ | ✓ | ✕ |
| MLIDS [13] | ID | ✕ | ✓ | ✕ | ✕ | ✓ | ✕ |
| BIDS [38] | ID | ✕ | ✓ | ✓ | ✕ | ✓ | ✓ |
| QdCNN [25] | ID | ✕ | ✕ | ✕ | ✕ | ✓ | ✓ |
| RecCNN [14] | ID | ✕ | ✓ | ✓ | ✕ | ✓ | ✕ |
| DCNN [46] | ID | ✕ | ✕ | ✕ | ✕ | ✓ | ✓ |
| TAN-IDS [34] | ID | ✕ | ✓ | ✓ | ✕ | ✓ | ✓ |
| G-IDCS [36] | ID | ✕ | ✓ | ✓ | ✓ | ✕ | ✕ |
| iForest [12] | Payload | ✓ | ✓ | ✕ | ✓ | ✓ | ✓ |
| NovelADS [2] | ID + Payload | ✕ | ✓ | ✕ | ✓ | ✓ | ✓ |
| XGBoost [4] | ID + Payload | ✓ | ✓ | ✓ | ✕ | ✕ | ✕ |
| Random Forest [40] | ID + Payload | ✕ | ✓ | ✕ | ✕ | ✕ | ✕ |
| CANLP [5] | ID + Payload | ✓ | ✓ | ✓ | ✕ | ✓ | ✓ |
| LSTM [19] | ID + Payload | ✕ | ✓ | ✓ | ✕ | ✕ | ✕ |
| TCAN-IDS [8] | ID + Payload | ✕ | ✓ | ✕ | ✕ | ✓ | ✓ |
| MTH-IDS [59] | ID + Payload | ✕ | ✓ | ✓ | ✓ | ✓ | ✓ |
| HybridSecNet [11] | ID + Payload | ✕ | ✓ | ✕ | ✕ | ✓ | ✓ |
| CQMLP-IDS [22] | ID + Payload | ✕ | ✓ | ✕ | ✕ | ✓ | ✕ |
| HyDL-IDS [30] | Time + ID + Payload + DLC | ✕ | ✕ | ✕ | ✕ | ✕ | ✕ |
| Dual-IDS (QLSTM + QCAE) | ID + Payload | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
Khandelwal et al.
FPGA based solutions are rapidly gaining popularity in the automotive industry, due to their ability to accelerate computationally expensive algorithms for the real-time tasks through low-level optimisations, providing both energy efficiency and reconfigurability. Previous studies have shown their effectiveness across various applications, such as vision-based ADAS, fault detection, and high-performance Ethernet gateways [42–45]. Mainstream automakers and suppliers are also exploring the viability of FPGA-based ECU platforms, with a recent demonstration implementing a real-time, heterogeneous multiprocessor system for managing motor control, battery operations, and charging functions [37].
3 System Architecture : LSTM & CAE models
3.1 LSTM-based IDS
To arrive at a model architecture to perform multi-class classification on a per-message basis, we evaluated several architectures including MLPs and CNNs. We observed that large MLPs, CNNs or multi-stage configurations of these layers are required to learn the specific features of different attack vectors, which increases the computational complexity, latency and energy consumption when mapped as a dataflow model. On the other hand, Low-complexity models required preprocessing steps such as processing windows of messages with adapted labels and thresholding to meet similar detection performance across all attack vectors. In general, we observed that training smaller versions of MLPs and CNNs to perform per-message multi-class classification did not converge, an observation consistent with our previous findings reported in [22]. We also observed that the detection performance deteriorated rapidly when applying standard model compression techniques to both low-complexity and large stacked models.
To overcome these challenges, we explored an long short term memory network (LSTM) layer as a recurrent feature extractor over ordered segments of an individual CAN frame, followed by dense layers for multiclass classification. Through extensive experimentation with LSTM (feature generation) + Dense (classification) model configurations, we observed that chaining an LSTM layer's output with a shallow dense model proved to be an ideal configuration to achieve highly accurate multi-class classification across the attack vectors. A high-level overview of the model's architecture is shown in Figure 2. Each CAN frame is represented by 20 unsigned 4-bit values (uint4), arranged as two ordered segments of 10 features each. The input tensor has the shape (batch size, 2, 10), where the sequence dimension represents successive segments within a single frame rather than successive CAN messages. A single-layer quantised LSTM with 20 hidden units processes these two segments sequentially. At the first recurrent step, the layer processes the first segment; at the second step, it processes the remaining segment using the hidden and cell states produced by the first step. This allows the model to learn dependencies between the two portions of the current frame. Both states are initialised to zero for each sample in every forward pass, and no recurrent state is carried between CAN frames. The final hidden state therefore provides a 20-dimensional representation of the current frame alone. The output from the LSTM layer is fed to a dense model with three fully connected layers, with 64, 32, and (4/5) neurons respectively. The number of neurons in the last layer depend on the number of attack classes in the testing dataset. ReLU activation functions are applied between the Dense layers to introduce non-linearity, with the final output layer producing the multi-class classification result. The final model comprises of 6,200 training parameters. Accordingly, the LSTM serves as a recurrent feature extractor within individual frames, enabling per-frame multiclass classification without modelling temporal dependencies across CAN messages. We used standard PyTorch functions and training framework for experimenting with different configurations and for training/testing the initial models.

Fig. 2. The figure shows the network architecture of the proposed LSTM-IDS. The CAN input is packed into 20 uint4 values as the input to the LSTM layer. The classified outputs are packed into a byte-wide data.
3.2 Dataset, Training & Deployment
3.2.1 Dataset Descriptions: To demonstrate the effectiveness of the proposed model, we evaluate it on two distinct CAN attack datasets used widely in the research literature. The first dataset used is the open Car Hacking dataset [7], which contains normal data along with separate data files for DoS, Fuzzing, and Spoofing (RPM/Gear) attacks. Each attack file in the dataset was generated by logging data from the OBD-II port of real vehicles while targeted injections were performed at run-time. Each attack was sustained for 3 to 5 seconds, resulting in a dataset comprising 30 to 40 minutes of total CAN traffic. The attacks exhibit distinct signatures, as shown below:
• DoS Attack: Repeatedly injecting messages with the dominant CAN ID ‘0000’ every 0.3 milliseconds to overwhelm the network.
• Fuzzing Attack: Injecting messages with completely random CAN ID and DATA values every 0.5 milliseconds to disrupt normal network operation.
• Spoofing Attack (RPM/Gear): Injecting messages with specific CAN IDs associated with RPM or gear information every 1 millisecond to imitate or alter legitimate data.
The second dataset we used to evaluate our model and demonstrate its generalization capability is the Survival Analysis Dataset for Automotive IDS [17]. This dataset primarily focuses on three types of attacks that can severely disrupt in-vehicle functions or escalate attack impact and damage: Flooding, Fuzzing, and Malfunction attacks. Like the Car Hacking dataset, this dataset includes one file for normal traffic and three separate files for each attack. The attack packets are injected for 5 seconds at 20-second intervals for each type of attack. To enhance generalizability, these three attacks were carried out on three different vehicles: the Hyundai Sonata, Kia Soul, and Chevrolet Spark. The specific attack signatures within this dataset are as follows:
• Flooding Attack: This attack resembles the DoS attack in the Car Hacking dataset, with both datasets injecting dominant CAN ID 0x0000. However, this dataset introduces complexity by including multiple message IDs with payloads set to all zeros across all 8 bytes, making the attack pattern slightly more intricate.
• Fuzzing attack: Similar to the Car Hacking dataset, this attack involves injecting messages with random CAN IDs and payloads on the bus every 0.3 milliseconds.
Khandelwal et al.
• Malfunction attack: The malfunction attack targets specific CAN IDs similar to the spoofing attack in the Car Hacking dataset. In this attack, manipulation of the data field is combined with the injection of messages using randomly selected CAN IDs to disrupt the vehicle's functionality. IDs specific to each vehicle were chosen to launch the attack.
Both these datasets have been widely used in the research literature for developing and evaluating various IDS approaches. Consequently, we leverage these datasets to rigorously test, validate and demonstrate the effectiveness of our IDS model.
We pre-process both datasets to filter out features (CAN Packet Data) we used for our training and testing flows. All the attack datasets were also preprocessed to convert the CAN ID + Payload features used as inputs to our model to the uint4 datatype as this datatype allowed us to retain the highest accuracy through the model compression stages. For the Car Hacking Dataset, the training set consisted of 10 million CAN frames (84.3%), the validation set contained 1.24 million CAN frames (10.4%), and the test set included 620,200 CAN frames (5.2%). These subsets were constructed by selecting an equal number of messages from the dataset's four attack categories: DoS, Fuzzing, RPM-Spoof, and Gear-Spoof. In the case of the Survival Analysis Dataset, all datasets captured from the same car model were combined to train the model for multi-class classification. However, we observed that the number of CAN frames captured from the three vehicles (as provided by the dataset) varied significantly. To ensure balanced datasets between benign and attack messages, the following train, validation, and test splits were applied for each model:
• Sonata model: 260,000 CAN frames (67.5%) for training, 50,000 CAN frames (12.9%) for validation, and 75,000 CAN frames (19.4%) for testing.
• Soul model: 360,000 CAN frames (70.5%) for training, 60,000 CAN frames (11.7%) for validation, and 90,000 CAN frames (17.6%) for testing.
• Spark model: 172,000 CAN frames (67.7%) for training, 32,000 CAN frames (12.5%) for validation, and 50,000 CAN frames (19.6%) for testing.
Due to the relatively smaller size of the Survival Analysis Dataset, a larger proportion of the data was allocated to testing to effectively demonstrate the efficacy of the proposed model's training and performance.
3.2.2 Training procedure. After arriving at the model architecture (LSTM + Dense) by observing its efficacy at floating point precision (fp32), we explored mixed-precision quantisation to reduce the model's compute and memory requirements. We quantised the LSTM and Dense layers from fp32 weights/activations to a quantised version with 8-bit quantised weights and 6-bit quantised activations (including the internal activations of the LSTM layer). A design space exploration (DSE) on the model's weight bit-widths was not conducted, as the corresponding matrix multiplication operations into which these weights are synthesised in hardware do not significantly impact resource utilisation. However, a DSE for activation bit-widths was essential, as resource usage increases exponentially with activation precision. This is because activations are implemented as Multithreshold blocks in hardware, which scale non-linearly with the activation bit-width [48]. We train the quantised version of this model with brevitas, an open-source quantisation-aware training (QAT) library by AMD. For all the datasets, we used the Adam optimiser with the CrossEntropyLoss as the loss function for multi-class classification. The CrossEntropyLoss loss function was chosen as they are known to improve the training flow when dealing with a multi-class classification problem with unbalanced training set like in our case. We set the learning rate for all our training flows to 0.0001. A slower lr helps to improve model convergence as has been shown by many studies [54]. With the car hacking dataset, the model converged quicker at 50 epochs with a batch size of 2000. In the case of the survival analysis dataset, the convergence was slower due to the

(a) Average Training Loss : DSE

(b) Average Validation Loss : DSE
Fig. 3. The figure illustrates the average training and validation loss curves for the QLSTM-IDS during its training for different activation precisions using the car hacking dataset. To better highlight the differences, the figure provides a magnified view of epochs 5 to 50.

(a) Average Training Loss

(b) Average Validation Loss
Fig. 4. The figure illustrates the average training and validation loss curves for the QLSTM-IDS during its training on the four attack datasets from the car hacking and survival analysis (SA) datasets.
smaller training set, requiring the model to be trained for 100 epochs with a batch size of 200 to achieve the best accuracies. Dropout layers were incorporated between computational layers to mitigate overfitting, enhancing the model's generalisation and training efficiency. Additionally, weight clipping techniques were employed during the training to the address gradient explosion in the LSTM layer, ensuring stable gradient updates and improved convergence. Figure 3 presents the average training and validation loss for activation bit-widths ranging from 2 to 8. The 2-bit activation model was excluded from the plot, as it exhibited overfitting during training. Ultimately, 6-bit activations were selected with a combination of 8-bit weights, offering the lowest validation loss across all configurations trained for 50 epochs. Figure 4 presents the training and validation loss curves for the QLSTM-IDS model trained on the four attack datasets. The training process exhibits stable convergence, with the best-performing models for each dataset (Car Hacking, Sonata (SA), Soul (SA), and Spark (SA)) selected at epochs 29, 64, 75, and 83, respectively, based on the lowest validation loss.
3.2.3 Generating the dataflow accelerator. Generating the dataflow hardware model for generalised LSTM models are not natively supported by open-source tools such as FINN. However, it has been
Khandelwal et al.
shown that custom implementations of uniformly quantised LSTMs can be achieved using hardware building blocks available in FINN's high-level synthesis library (finn-hlslib) as shown in [39]. We take inspiration from this approach and convert our trained mixed precision QLSTM-Dense model to the ONNX intermediate representation (IR). Brevitas export flow does not have support for quantised LSTM layers, for which we built a custom handler function to generate the ONNX model for our QLSTM model. This export representation captures the computations, weights as well as scales/zero-points of the quantisers that we used to achieve the quantisation, which is required by the mapping flow to generate the hardware dataflow block. To map the ONNX nodes to the available hardware building blocks, we reverse-engineered certain transformations provided by FINN and created new transformations in the FINN compiler to map the computations in our ONNX graph to finn-hlslib hardware blocks. In this step, we transformed graph nodes that do not have a one-to-one representation in the library using the custom transformations to represent them using FINN-compatible hardware blocks. Subsequently, the updated computation graph was passed to Vitis HLS (v2022.2) flow and linked with the FINN libraries to map these blocks using the hardware blocks available in the FINN backend. Pragma's were used to unfold loops for parallel processing as well as to map the input and output interfaces of the model as AXI stream allowing for seamless integration with other IP blocks and/or processing system on a Zynq device (the hardware description script can be accessed via our GitHub repository). For our testing, the IP was integrated into a PYNQ overlay design with a data-preprocessor FIFO which converts byte-wide CAN message data into the uint4 representation used by the model. The PYNQ overlay includes AXI-DMA and other interface wrappers to move data from/to the IP from software on the ARM cores, to aid with our evaluation. The Zynq Ultrascale+ XCZU7EV device on the ZCU104 development platform was chosen as a target platform for the implementation. For testing the I/O interface and the final model, the PYNQ interface was used to write data to the model via the pre-processor FIFOs and to read the classified result from the accelerator IP. This flow was chosen as it allows us to determine the classification accuracy, detection latency and energy consumption of the hardware implementation of our model while embedding the IDS function in an architecture that mimics a standard ECU. While the PYNQ flow introduces software overheads, it provides a seamless interface for moving data between the ARM cores and logic and provides API functions to probe on-board power rails directly from software at runtime [1].
3.3 CAE based IDS
While the LSTM-based IDS discussed above is trained to detect known attack vectors, it remains vulnerable to novel or evolving threats that fall outside its training distribution, a common limitation of supervised models. In prior work, we proposed an autoencoder-based IDS that learns the normal operational patterns of CAN bus traffic and flags deviations as potential anomalies [23]. This model was trained exclusively on benign data from the CH dataset and evaluated on sequences that combined benign and malicious traffic. In this work, we streamline and optimise that model architecture, and evaluate its performance on a distinct dataset: the SA attack dataset, specifically the Sonata and Spark subsets. The model architecture, input feature size parameters and training/post-quantisation fine-tuning steps were optimised to learn the normal message patterns from the smaller training data corpus (9× fewer samples compared to our previous work). Note, in this work, “unseen attacks” denotes attacks excluded from training, model selection, and threshold calibration and introduced only during final evaluation. These attacks belong to established categories in the SA dataset; they are unseen by the model rather than novel attack categories or demonstrations of real-world zero-day exploitation. The evaluation therefore assesses benign-trained anomaly detection for attacks that alter CAN-ID sequence patterns.

Fig. 5. The proposed convolutional autoencoder model architecture for CAN-ID sequence anomaly detection IDS. ‘n’ denotes the window size of the input feature used for attack detection. The proposed model uses n = 100 in this paper.
The architecture of the autoencoder is based on an encoder-decoder framework. The encoder consists of two Conv2D layers with ReLU activation, and max-pooling layers are inserted between the convolutions to reduce the feature dimensions progressively. The decoder is composed of two Conv2DTranspose (Deconvolution) layers, also using ReLU activations, to reconstruct the input from the learned latent space. The final layer of the decoder consists of a Conv2D layer with a single filter and sigmoid activation, producing the binarised reconstructed message. This model architecture is shown in Figure 5. The model was implemented in Tensorflow, using standard TensorFlow functions and node definitions. As the input feature, a sequence of n = 100 CAN-IDs is chosen in binary format while experimenting with the dataset, capturing the sequence of messages exchanged on a normal CAN network. At a bus utilisation of 100%, this corresponds to a time window of 1 ms (with the peak rate of 10,000 messages per second) on a high-speed CAN network. During the DSE, it was observed that using smaller blocks (e.g., n = 10 or n = 50) limited the model's ability to learn intrinsic features, reducing the classifier's efficiency. On the other hand, increasing the window size (i.e., block size n > 100) resulted in much higher worst-case detection latency, as more time was required to accumulate the required number of messages for attack detection and hence n = 100 was chosen as the block size for this dataset.
To determine the optimal configuration of the CAE, different design configurations with different layers and filter sizing were explored, iterating through multiple training and validation steps. For the Conv2D and Conv2DTranspose layers different filter sizes both in the encoder and decoder were explored. For the SA dataset, we found that the configuration & for the filter sizes in the encoder and decoder gave the highest classification performance (as opposed to the & configuration achieved for the CH dataset ). To classify the reconstructed messages as benign or an attack, the hamming distance metric was chosen to compute the distance (threshold) between the original and predicted binary vectors. With the network trained on normal ECU communication, any abnormal or attack message flow in the input stream causes the reconstructed message to have a much larger hamming distance (greater than the classification threshold) as the model has not seen these messages during the training phase. To determine the classification threshold, the benign dataset for each vehicle was divided into separate training, validation, and threshold-calibration subsets. The QCAE model weights were optimised using the training subset, and the final model checkpoint was selected according to the lowest loss on the validation subset. After fixing the model weights, the reconstruction-error threshold was varied from 0 to 100 using only the disjoint benign calibration subset. For the Sonata model, the number of false positives decreased as the threshold increased from 0 to 67. A threshold of 68 was the smallest value that produced no false positives on the benign calibration subset and was therefore selected. The same procedure produced a threshold of 49 for the Spark model. No
Khandelwal et al.
(a) Sonata | Benign calibration

(b) Sonata | Test-set sensitivity

Fig. 6. Floating-point CAE threshold calibration and test-set sensitivity for the Sonata subset. (a) Correctly classified benign calibration blocks out of 150, with a selected threshold of 68. (b) Correctly classified blocks across thresholds for the Flooding, Fuzzing, and Malfunction test sequences. The dashed line marks the threshold determined exclusively from benign calibration data; test-set results did not inform its selection. Zero calibration false positives do not constitute an independent test result.
attack samples were used for model training, checkpoint selection, or threshold calibration. After the model and threshold had been fixed, the separate attack datasets were used exclusively for evaluating the detection of attack traffic absent from training. Figures 6 & 7 present the threshold-calibration results and the subsequent attack-evaluation results for the Sonata and Spark subsets, respectively.
The anomaly-detection capability of QCAE is limited by its input features. As the model processes only sequences of CAN IDs, it is primarily sensitive to anomalies that change the occurrence, ordering, or frequency of identifiers, including flooding, fuzzing, and message-injection attacks that disturb normal CAN-ID patterns. It may not detect attacks that modify only the payload while preserving an otherwise normal identifier sequence, such as certain payload-spoofing, replay, or semantic-manipulation attacks. The QLSTM component provides complementary payload-aware detection because it processes both CAN IDs and payload data. It can therefore identify payload manipulations that resemble attack classes represented during its supervised training. Nevertheless, the current architecture does not guarantee detection of previously unseen payload-only attacks, and extending QCAE to incorporate payload or timing features remains an important direction for future work.
3.3.1 Training Procedure. As mentioned, Sonata & Spark subsets of the SA dataset were used for training the model and to test the performance [17]. The attack free datasets in each of the subsets were split in a 75:15:10 ratio for training, validation, and threshold-calibration steps respectively, with the largest section allocated to training and optimisation of the quantised network. For the Sonata subset, 100,000 messages were extracted in sequence from each of the attack sets, resulting in 1000 blocks n = 100 for testing. For the Spark subset, 100,000, 65,000 & 79,000 messages were extracted in sequence from each of the attack sets, resulting in 1000, 650 & 790 blocks (n = 100) for testing for each attack, respectively. The models performance on the validation set during training ensures that it is not overfitting on the benign message dataset. With 12-bit CAN IDs used in the dataset, the binarised input block has the shape , which is organised as the input FIFO/buffer when integrated with the PS. These blocks are then fed into the model as input for training and testing, respectively. The models were trained using the standard TensorFlow
(a) Spark | Benign calibration

(b) Spark | Test-set sensitivity

Fig. 7. Floating-point CAE threshold calibration and test-set sensitivity for the Spark subset. (a) Correctly classified benign calibration blocks out of 150, with a selected threshold of 49. (b) Correctly classified blocks across thresholds for the Flooding, Fuzzing, and Malfunction test sequences, containing 1,000, 650, and 790 blocks, respectively. The dashed line marks the threshold determined exclusively from benign calibration data; test-set results did not inform its selection. Zero calibration false positives do not constitute an independent test result.
framework. The Adam optimiser was used with binary cross entropy as the loss function during training. The learning rate for training the models was set to 0.001 and they comprised of 47,425 learnable parameters. The models were trained for 500 epochs with a batch size of 64 on the normal (attack-free) dataset. The best model in terms of validation loss was saved and exported as an 'h5' file. The weights file for the models were then fed into the Vitis-AI toolchain for quantisation and post-quantisation optimisations for final deployment on the DPU IP.
3.3.2 Generating the overlay accelerator. Once the proposed CAE's architecture and parameters were determined through DSE, the weights, biases, and activations of the trained model are 8-bit quantised using AMD/Xilinx's Vitis-AI framework to generate the quantised versions of the CAE model (referred to from hereon as QCAE-SA) [57]. Following quantisation of the floating-point models using Vitis-AI, the reconstruction-error thresholds were recalibrated using the same benign-only procedure applied to the floating-point models. Quantisation changes the numerical representation of the model parameters and activations and can therefore alter the reconstruction errors, requiring the thresholds to be determined again for the quantised models. With the quantised models fixed, the threshold was varied using only the benign threshold-calibration subset, and the smallest value yielding no false positives on that subset was selected. This procedure resulted in thresholds of 73 and 52 for the Sonata and Spark models, respectively, compared with the floating-point thresholds of 68 and 49. No attack samples or test-set results were used to select or adjust the thresholds at either stage. The final post-quantisation thresholds were then frozen and used for subsequent evaluation on the respective test datasets. To achieve optimal acceleration of the model, different hardware accelerator configurations of the Vitis-AI's DPU IP core were explored (B512, B1152, B4096), taking into account the resource constraints on the target Ultrascale+ (XCZU7EV) platform [50]. These DPU configurations were evaluated to compare the latency and energy consumption when implementing the models, and we observed that the B512 DPU provided the best tradeoff for the QCAE-SA model (results shown in section 4). For the inference results and comparisons, the B512 DPU configuration was chosen as the accelerator.
Khandelwal et al.
3.4 Dual-IDS Architecture and Integration
The LSTM- and autoencoder-based IDSs offer complementary strengths for vehicular network security. The LSTM-based IDS, trained via supervised learning, excels at rapidly classifying known attacks such as flooding, fuzzing, and spoofing. In contrast, the CAE-based IDS models normal traffic through unsupervised learning, enabling the detection of previously unseen deviations from normal CAN-ID sequence patterns. Their integration yields a comprehensive detection architecture: the LSTM-IDS provides precise recognition of established patterns, while the CAE-IDS enhances adaptability to novel behaviours, all with minimal overhead when jointly deployed on a unified platform.
Figure 8 illustrates the proposed architecture that integrates the dual-IDS function closer to the network interface to reduce software overheads and latency while retaining software-based control. The Zynq Ultrascale+ XCZU7EV device is used as the target ECU platform, which combines a programmable logic (PL) fabric (a standard FPGA fabric) with an integrated ARM-based CPU subsystem on the same die. The ARM subsystem (called processing system - PS) in the XCZU7EV uses a combination of a quad-core ARM Cortex-A53 processor for general processing and a dual-core ARM Cortex-R5 processor for handling real-time tasks. In our model architecture, the ARM cores on the PS function as the primary ECU compute nodes, responsible for executing standard functionalities, while the programmable logic (PL) serves as an extended compute region. The PL enables the deployment of hardware-accelerated IDS models (QLSTM + QCAE) and the CAN network interface, with custom interface designs and low-level optimisations (in case of the models) to exploit hardware-level parallelism and efficiency. This integration approach also provides a clear separation of tasks between ECU applications and IDS operations. By isolating the IDS in the PL, critical ECU compute resources remain dedicated to their primary tasks, ensuring smooth and efficient ECU performance without interference from the IDS. An open-source CAN controller is used to implement the CAN protocol in this design, with adapted interface wrappers to support the AXI interface to the ARM cores.
For the IDS integration, we tap into the AXI interconnect between the CAN controller and the PS to drive decoded CAN message data into the IDS engines and the PS at the same time. This way, the message data is cloned into the pre-processing FIFO for the QLSTM model and the ping-pong buffer for the QCAE model, when the PS reads the received message from the CAN controller. This design is suitable even for proprietary CAN controllers where internal modifications are not feasible. The pre-processing FIFO of the QLSTM model receives byte-wide message data and converts it to the uint4 format required by the model using an asymmetric-width interface. In contrast, the pre-processing FIFO of the QCAE model receives the CAN ID of each message in two consecutive bytes, which are stored in a dual-bank ping-pong FIFO buffer. The pre-processing logic reformats the byte-wide data into the bitwise input format required by the QCAE model. This buffer design enables concurrent data acquisition and IDS processing, ensuring no messages are lost during runtime. Streaming interfaces between the FIFOs and the IDS models. The FIFOs also facilitate clock domain crossing from the slower clock domain of the CAN controller to the faster clock domain of the QLSTM and QCAE accelerators. For hardware-in-the-loop testing, we augment the design with a software-controlled datapath that allows software routines to inject messages directly into the IDS via the AXI interconnect. A multiplexer switches the data source between the CAN controller and the AXI interconnect, controlled by an external signal mapped to a physical switch on the ZCU104 board. Once either IDS model reaches a decision, the result is communicated back to the PS over AXI. Based on this output, the ECU in the PS can take appropriate countermeasures, such as dropping malicious messages or triggering safety protocols, thereby enabling real-time defence against known and unknown attacks. The two IDS components operate concurrently and their

Fig. 8. The figure illustrates the ECU architecture modelled on a Zynq Ultrascale+ hybrid SoC and the path of a CAN message upon reception in this architecture. In this architecture, the processing system (PS) functions as the ECU, executing automotive applications. The blue arrows indicate the path taken by the CAN message from the CAN bus to the software tasks on the PS. The IDS processing is integrated within the programmable logic (PL) section of the XCZU7EV device. The IDSs can receive the CAN message directly from the controller (at the same instance as it is read by the PS) or forwarded by the PS. We use a multiplexer to control this at run-time, with the select line connected to an external peripheral on the board.
decisions are combined through an OR-based alert policy. QLSTM-IDS generates a classification for each CAN frame, whereas QCAE-IDS generates an anomaly decision for each block of 100 CAN identifiers. An alert is raised when either detector produces a positive decision. A QLSTM-only alert is assigned the attack class predicted by the supervised model, while a QCAE-only alert is reported as an unclassified anomaly. When both detectors produce positive decisions, the QLSTM class is retained and the QCAE output provides corroborating anomaly evidence. Neither detector overrides or suppresses the other: a benign QLSTM decision does not cancel a QCAE anomaly, and a benign QCAE decision does not cancel a QLSTM attack classification. This policy allows the payload-aware QLSTM and ID-sequence-based QCAE to provide complementary coverage.
4 Results
In this section, we present the performance metrics of the QLSTM-IDS and QCAE-IDS models on the evaluated attack datasets, including accuracy, inference latency, energy consumption, and
Khandelwal et al.
resource utilisation, on the Zynq Ultrascale+ XCZU7EV platform. To demonstrate the classification performance of the QLSTM-IDS model, we test it with both the open-car hacking & survival analysis datasets. We compare the model performance in terms of accuracy metrics precision, recall and F1 score against the following state-of-the-art IDSs proposed in the research literature: BIDS [38], QMLP-IDS [22], DCNN [46], TCAN-IDS [8], GRU [31], HybridSecNet [11], LSTM [19], TAN-IDS [34], NLP [5], Random Forest [40]. To demonstrate the classification performance of the QCAE-IDS model we test it with the survival analysis dataset. We compare the model performance in terms of accuracy metrics, precision, recall and F1 score against the following state-of-the-art IDSs proposed in the research literature: LSTM [19], TAN-IDS [34], NLP [5], Random Forest [40]. We also quantify the detection latency, resource utilisation & actual energy consumption of our QLSTM and QCAE models on the FPGA and compare the results with other works which have reported these results. We used a combination of FINN and Vitis (HLS + Synthesis) flow to generate the streamlined accelerator for the QLSTM model, whereas the QCAE model was mapped to the B512 DPU using the Vitis-AI flow. The IDS components are integrated with the CAN controller and the PS through the IP-integrator flow in Vivado and subsequently synthesised to generate the bitstream for the dual-IDS solution. The QLSTM accelerator uses a clock frequency of 150 MHz, whereas the DPU IP for the QCAE is clocked at 300 MHz. We use the PYNQ image on the ARM cores, which uses a custom Ubuntu OS with PetaLinux tools since it offers an easy interface to manage data movement to and from the accelerators on the PL for extensively testing the inference performance of our models. The heavy OS layers allow us to compute the worst-case latency in the presence of software and driver overheads. Additionally, APIs in the PYNQ libraries allow us to isolate power measurement of the logic region by directly monitoring the power rails from the ARM cores while the models run inference.
4.1 Accuracy
4.1.1 QLSTM-IDS - Message Level Detection. Car Hacking dataset: On the Car Hacking dataset, our QLSTM-IDS model achieves an impressive overall classification accuracy of 99.998%. The test set includes 620,000 messages, consisting of 502,591 benign, 25,760 DoS, 32,361 Fuzzy, 32,385 RPM-Spoof, and 27,103 Gear-Spoof messages. The classified outputs are captured using a multi-class confusion matrix shown in Figure 9, which reveals that the model only misclassified 11 messages across the entire test set. From the results, we also calculate key performance metrics, including precision, recall, F1 score, and false negative rate (FNR), to capture our model's detection performance in more detail. We compare these results with several state-of-the-art IDS models that have used the same dataset for training and testing, including DCNN [46], NovelADS [2], TCAN-IDS [8], GRU [31], HybridSecNet [11], BIDS [38], and CQMLP-IDS [22]. The comparative results from the referenced studies are presented in Table 2 with some observations discussed as follows:
• DoS attack : QLSTM-IDS model achieves perfect detection, with an F1 score superior to DCNN [46], NovelADS [2], GRU [31], BIDS [38], and CQMLP-IDS [22] by margins of 0.05%, 0.06%, 0.08%, 0.37%, and 0.1%.
• Fuzzing attack : QLSTM-IDS model outperforms DCNN [46], TCAN-IDS [8], GRU [31], BIDS [38], and CQMLP-IDS [22] in F1 score by 0.2%, 0.8%, 0.8%, 0.3%, and 0.2%, respectively, and performs equivalently to NovelADS [2].
• RPM-Spoofing : QLSTM-IDS model achieves perfect detection with F1 score improvement over NovelADS [2], TCAN-IDS [8], GRU [31], and BIDS [38] by 0.1%, 0.1%, 0.4%, and 0.14%, respectively.
Table 2. Accuracy metric comparison (%) of our QLSTM-IDS accelerator against the reported literature on the DoS, Fuzzing & Spoofing (RPM & Gear) attacks for car hacking dataset.
| Attack | Model | Precision (%) | Recall (%) | F1 (%) | FNR (%) |
|---|---|---|---|---|---|
| DoS | DCNN [46] | 100 | 99.89 | 99.95 | 0.13 |
| NovelADS [2] | 99.97 | 99.91 | 99.94 | - | |
| TCAN-IDS [8] | 100 | 99.97 | 99.98 | - | |
| GRU [31] | 99.93 | 99.91 | 99.92 | - | |
| BIDS [38] | 99.50 | 97.73 | 98.63 | - | |
| QMLP-IDS [22] | 99.92 | 99.88 | 99.90 | 0.11 | |
| QLSTM-IDS | 100 | 100 | 100 | 0 | |
| Fuzzy | DCNN [46] | 99.95 | 99.65 | 99.80 | 0.5 |
| NovelADS [2] | 99.99 | 100 | 100 | - | |
| TCAN-IDS [8] | 99.96 | 99.89 | 99.22 | - | |
| GRU [31] | 99.32 | 99.13 | 99.22 | - | |
| BIDS [38] | 100 | 99.38 | 99.69 | - | |
| QMLP-IDS [22] | 99.93 | 99.69 | 99.81 | 0.27 | |
| QLSTM-IDS | 99.99 | 99.98 | 99.98 | 0.02 |
| Attack | Model | Precision (%) | Recall (%) | F1 (%) | FNR (%) |
|---|---|---|---|---|---|
| RPM | DCNN [46] | 99.99 | 99.94 | 99.96 | 0.11 |
| NovelADS [2] | 99.91 | 99.9 | 99.91 | ||
| TCAN-IDS [8] | 99.9 | 99.9 | 99.9 | ||
| GRU [31] | 99.95 | 99.31 | 99.63 | ||
| BIDS [38] | 99.99 | 99.73 | 99.86 | - | |
| QMLP-IDS [22] | 99.96 | 100 | 99.98 | 0 | |
| QLSTM-IDS | 100 | 100 | 100 | 0 | |
| Gear | DCNN [46] | 99.99 | 99.89 | 99.94 | 0.12 |
| NovelADS [2] | 99.89 | 99.93 | 99.91 | - | |
| TCAN-IDS [8] | 99.99 | 99.98 | 99.98 | - | |
| GRU [31] | 99.95 | 99.31 | 99.63 | - | |
| BIDS [38] | 99.99 | 99.84 | 99.91 | - | |
| QMLP-IDS [22] | - | - | - | - | |
| QLSTM-IDS | 100 | 100 | 100 | 0 |
- Gear-Spoofing : QLSTM-IDS model achieves perfect detection with a better F1 score than DCNN [46], NovelADS [2], GRU [31], and BIDS [38] by 0.06%, 0.1%, 0.4%, and 0.1%.
In comparison to the multi-attack detection model HybridSecNet [11], which reports average precision, recall, and F1 scores of 99.57%, 99.58%, and 99.57% respectively, the proposed QLSTM-IDS achieves 99.99% across all three metrics. This represents a consistent improvement of +0.4% in precision, recall, and F1, highlighting it's advantage in multi-attack detection scenarios.
Survival Analysis Dataset : The survival analysis dataset, as discussed in the previous section, includes attack datasets for three different car models: HYUNDAI Sonata (2010), KIA Soul SUV (2015), and CHEVROLET mini/compact vehicle Spark (2015). We evaluate QLSTM-IDS against the attack datasets from each of these vehicle models. The test set for each model consists of the following number of messages: Sonata - 75,000 (Normal: 59,493, Flooding: 6,735, Fuzzing: 4,780, Malfunction: 3,992); Soul - 90,000 (Normal: 73,511, Flooding: 8,705, Fuzzing: 6,327, Malfunction: 1,457); and Spark - 50,000 (Normal: 40,528, Flooding: 7,011, Fuzzing: 1,480, Malfunction: 981).
The multi-class confusion matrices generated from the classification output of our model across different vehicle models in the survival analysis dataset are shown in Figure 9. From the results, we can observe that our model output produces 7, 50, and 149 mis-classifications across the test sets for Sonata, Soul, and Spark cars, respectively. We compare our findings with state-of-the-art models that have utilized this dataset, including XGBoost [4], LSTM [19], G-IDCS [36], TAN-IDS [34], NLP [5], and Random Forest [40]. Table 3 shows the comparative performance of our QLSTM-IDS against the above state-of-the-art models across the three vehicle datasets, Sonata, Soul and Spark respectively and we discuss some observations from the comparisons below:
-
Sonata : QLSTM-IDS achieves a 5.3% higher F1 score than XGBoost [4] while being on par with the other two models in detecting flooding attacks. In the case of detecting fuzzing and malfunction attacks, QLSTM-IDS improves on XGBoost [4] and Random Forest [40] by 0.4% & 0.07% (fuzzing), and by 0.04% & 0.06% (malfunction) respectively, while being nearly identical to the LSTM [19] model.
-
Soul : QLSTM-IDS for the flooding attack achieves on par performance with Random Forest [40], LSTM [19] and Transformer-based IDS [34], while improving on the XGBoost model by 5.3% (F1 score). For the fuzzing attack, the model improved on the LSTM [19] and Transformer [34] models by 2.6% and 2.3% (F1 scores) respectively, while slightly falling behind
Khandelwal et al.
| Car-Hacking Dataset : Multi-Class Confusion Matrix | ||||||
|---|---|---|---|---|---|---|
| TARGET OUTPUT | Benign | DoS | Fuzzing | RPM-Spoof | Gear-Spoof | SUM |
| Benign | 90284 81.03% | 0 0.00% | 7 0.001% | 0 0.00% | 0 0.00% | 90291 99.99% 0.001% |
| DoS | 0 0.00% | 28760 4.153% | 0 0.000% | 0 0.000% | 0 0.000% | 28760 100.000% 0.000% |
| Fuzzing | 4 0.001% | 0 0.00% | 32357 5.217% | 0 0.000% | 0 0.000% | 32361 99.983% 0.012% |
| RPM-Spoof | 0 0.000% | 0 0.000% | 0 0.000% | 32385 5.222% | 0 0.000% | 32385 100.000% 0.000% |
| Gear-Spoof | 0 0.000% | 0 0.000% | 0 0.000% | 0 0.000% | 27163 4.370% | 27163 100.000% 0.000% |
| SUM | 90288 99.99% 0.001% | 28760 100.000% 0.000% | 32364 99.971% 0.022% | 32385 100.000% 0.000% | 27163 100.000% 0.000% | 620189 / 620200 99.99% 0.002% |
(a) Car Hacking Dataset confusion matrix
| Survival Analysis Dataset - Confusion Matrix (Sonata) | |||||
|---|---|---|---|---|---|
| TARGET OUTPUT | Benign | Flooding | Fuzzy | Malfunction | SUM |
| Benign | 5949279.323% | 0 0.000% | 1 0.001% | 0 0.000% | 5949399.998% 0.002% |
| Flooding | 0 0.000% | 6735 8.980% | 0 0.000% | 0 0.000% | 6735 100.000% 0.000% |
| Fuzzy | 6 0.000% | 0 0.000% | 4774 6.365% | 0 0.000% | 4780 99.874% 0.126% |
| Malfunction | 0 0.000% | 0 0.000% | 0 0.000% | 3992 5.323% | 3992 100.000% 0.000% |
| SUM | 59498 99.990% 0.010% | 6735 100.000% 0.000% | 4775 99.979% 0.021% | 3992 100.000% 0.000% | 74993 / 75000 99.991% 0.008% |
(b) HYUNDAI YF Sonata 2010 Model
| Survival Analysis Dataset - Confusion Matrix (Soul) | |||||
|---|---|---|---|---|---|
| TARGET OUTPUT | Benign | Flooding | Fuzzy | Malfunction | SUM |
| Benign | 7351181.879% | 0 0.000% | 0 0.000% | 0 0.000% | 73511100.000% 0.000% |
| Flooding | 0 0.000% | 8705 9.872% | 0 0.000% | 0 0.000% | 8705 100.000% 0.000% |
| Fuzzy | 3 0.003% | 0 0.000% | 6277 6.974% | 47 0.052% | 6327 99.210% 0.790% |
| Malfunction | 0 0.000% | 0 0.000% | 0 0.000% | 1457 1.619% | 1457 100.000% 0.000% |
| SUM | 73514 99.996% 0.004% | 8705 100.000% 0.000% | 6277 100.000% 0.000% | 1504 96.875% 3.125% | 89950 / 90000 99.944% 0.056% |
(c) KIA compact SUV Soul 2015 Model
| Survival Analysis Dataset - Confusion Matrix (Spark) | |||||
|---|---|---|---|---|---|
| TARGET OUTPUT | Benign | Flooding | Fuzzy | Malfunction | SUM |
| Benign | 4040580.810% | 0 0.000% | 123 0.248% | 0 0.000% | 4052899.697% 0.303% |
| Flooding | 0 0.000% | 7011 14.022% | 0 0.000% | 0 0.000% | 7011 100.000% 0.000% |
| Fuzzy | 26 0.052% | 0 0.000% | 1454 2.908% | 0 0.000% | 1480 98.243% 1.757% |
| Malfunction | 0 0.000% | 0 0.000% | 0 0.000% | 981 1.962% | 981 100.000% 0.000% |
| SUM | 40431 99.936% 0.064% | 7011 100.000% 0.000% | 1577 92.200% 7.800% | 981 100.000% 0.000% | 49851 / 50000 99.702% 0.298% |
(d) CHEVROLET mini-compact vehicle Spark 2015 Model
Fig. 9. Confusion matrices for QLSTM-IDS classification results on the car hacking and survival analysis datasets. (Sonata, Soul, and Spark models)
XGBoost and Random Forest by 0.2% and 0.3% (F1 scores). For malfunction attacks, the model outperforms all the other models with perfect detection with zero misclassification, improving on XGBoost, Random Forest, LSTM and Transformer models by 3.5%, 0.06%, 9.1%, and 0.2% (F1 scores), respectively.
- Spark: For flooding and malfunction attacks, the model achieves perfect detection with zero misclassification across the test data. However, for the fuzzing attack, the model achieves good precision but with degraded recall, F1 scores and FNRs, producing better results than only the XGBoost model. We believe that this degradation stems from the very low number of test data available in the Spark subset and specifically for the fuzzing attack on this vehicle.
Additionally, in [5], the authors report an average F1 score of 97.6% for the IDS model proposed in the paper, when averaged across all attacks and all vehicles. In comparison, QLSTM-IDS achieves average F1 scores of 99.97%, 99.86%, and 98.37% across the attack datasets for the Sonata, Soul, and Spark models, respectively, with an overall average of 99.4%. It should be noted that all competing methods (except XGBoost) use a block of acquired CAN data as the input feature for detecting the attack, with adapted labels that flag the block as malicious; in contrast, our model performs detection on a per-message basis and flags only the specific message as an attack or benign.
4.1.2 QCAE-IDS - Block Level Detection. To test the functional correctness of the quantised QCAE-SA model, we initially compare the pre- & post-quantisation inference performance of the model. For the SA dataset, we observe an equal performance for the DoS & Fuzzing attacks with a slight drop for the Malfunction attack. The QCAE-SA model performance is shown in table 4. The model is not evaluated on the Soul subset of the dataset because it contained insufficient attack-free
Table 3. Performance metric comparison of QLSTM-IDS across different attacks for Sonata (left), Soul (middle), and Spark (right) datasets.
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 100 | 90 | 94.74 |
| RF [40] | 100 | 100 | 100 |
| G-IDCS [36] | 99.73 | 99.72 | 99.72 |
| LSTM [19] | - | 100 | 100 |
| QLSTM-IDS | 100 | 100 | 100 |
(a) Sonata - Flooding
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 100 | 90 | 94.74 |
| RF [40] | 100 | 100 | 100 |
| LSTM [19] | - | 100 | 100 |
| G-IDCS [36] | 96.92 | 99.74 | 98.31 |
| QLSTM-IDS | 100 | 100 | 100 |
(b) Soul - Flooding
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 99.98 | 99.08 | 99.53 |
| RF [40] | 99.79 | 99.93 | 99.86 |
| G-IDCS [36] | 100 | 100 | 100 |
| LSTM [19] | - | 99.95 | 99.96 |
| QLSTM-IDS | 99.87 | 99.98 | 99.93 |
(d) Sonata - Fuzzing
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 99.92 | 100 | 99.96 |
| RF [40] | 99.90 | 99.98 | 99.94 |
| G-IDCS [36] | 100 | 99.64 | 99.82 |
| LSTM [19] | - | 100 | 100 |
| QLSTM-IDS | 100 | 100 | 100 |
(g) Sonata - Malfunction
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 99.99 | 99.58 | 99.78 |
| RF [40] | 99.79 | 99.93 | 99.86 |
| LSTM [19] | - | 94.69 | 97.01 |
| G-IDCS [36] | 100 | 99.84 | 99.92 |
| QLSTM-IDS | 99.21 | 100 | 99.60 |
(e) Soul - Fuzzing
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 100 | 93.22 | 96.49 |
| RF [40] | 99.90 | 99.98 | 99.94 |
| LSTM [19] | - | 96.97 | 90.87 |
| G-IDCS [36] | 95.92 | 99.03 | 97.45 |
| QLSTM-IDS | 100 | 100 | 100 |
(h) Soul - Malfunction
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 100 | 90 | 94.74 |
| RF [40] | 100 | 100 | 100 |
| LSTM [19] | - | 100 | 100 |
| G-IDCS [36] | 99.65 | 100 | 99.83 |
| QLSTM-IDS | 100 | 100 | 100 |
(c) Spark - Flooding
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 97.34 | 92 | 94.6 |
| RF [40] | 99.79 | 99.93 | 99.86 |
| LSTM [19] | - | 98.23 | 98.31 |
| G-IDCS [36] | 98.92 | 100 | 99.46 |
| QLSTM-IDS | 98.24 | 92.20 | 95.13 |
(f) Spark - Fuzzing
| Model | Prec. | Recall | F1 |
|---|---|---|---|
| XGBoost [4] | 99.80 | 100 | 99.90 |
| RF [40] | 99.90 | 99.98 | 99.94 |
| LSTM [19] | - | 100 | 100 |
| G-IDCS [36] | 99.36 | 100 | 99.68 |
| QLSTM-IDS | 100 | 100 | 100 |
(i) Spark - Malfunction
Table 4. Accuracy metric comparison (%) of our QCAE-IDS accelerator pre- and post-quantisation on the Sonata and Spark subsets of the SA dataset.
| Subset | Attack | Model | Precision | Recall | F1 |
|---|---|---|---|---|---|
| Sonata | Flooding | Pre-Q | 100 | 99.28 | 99.64 |
| QCAE-SA | 100 | 99.28 | 99.64 | ||
| Fuzzy | Pre-Q | 100 | 99.5 | 99.75 | |
| QCAE-SA | 100 | 99.5 | 99.75 | ||
| Malfunction | Pre-Q | 100 | 96.8 | 98.37 | |
| QCAE-SA | 100 | 94.24 | 97.04 | ||
| Spark | Flooding | Pre-Q | 98.92 | 100 | 99.33 |
| QCAE-SA | 98.21 | 100 | 98.88 | ||
| Fuzzy | Pre-Q | 100 | 98.39 | 99.19 | |
| QCAE-SA | 100 | 98.39 | 99.19 | ||
| Malfunction | Pre-Q | 98.75 | 93.89 | 95.89 | |
| QCAE-SA | 97.08 | 94.53 | 94.99 |
messages to support meaningful training, validation, and threshold calibration using separate benign subsets. This limited the development of a reliable UL model for this subset for detecting previously unseen CAN-ID sequence anomalies.
The 150 benign blocks per vehicle were used for threshold calibration. Their zero observed false positives are a calibration result and are not an independent estimate of test-set false-positive performance. To evaluate detection of attacks unseen by QCAE during model development, we
Khandelwal et al.
Table 5. Confusion matrix capturing the classification results of the QCAE-SA on the Flooding, Fuzzing, and Malfunction attacks for the SA dataset (Sonata & Spark). (Note the model is trained only on benign messages and does not see any attack message during the training phase.)
| Attack | Message Type | Pred. N | Pred. A |
|---|---|---|---|
| Flooding | True N | 585 | 0 |
| True A | 3 | 412 | |
| Fuzzy | True N | 606 | 0 |
| True A | 2 | 392 | |
| Malfunction | True N | 594 | 0 |
| True A | 24 | 393 |
| Attack | Message Type | Pred. N | Pred. A |
|---|---|---|---|
| Flooding | True N | 548 | 10 |
| True A | 0 | 442 | |
| Fuzzy | True N | 464 | 3 |
| True A | 0 | 183 | |
| Malfunction | True N | 465 | 14 |
| True A | 17 | 294 |
evaluated QCAE-SA on unseen Flooding, Fuzzing, and Malfunction attacks from the SA dataset. We also compare QCAE-SA with published IDS methods including supervised classifiers trained on labelled benign and attack samples. Table 5 captures the classification performance of the model in isolation across the test set as a confusion matrix. As discussed in section 3.3, the accuracies reported are obtained for the threshold values of 73 & 52 for the QCAE-SA model on the Sonata and Spark test sets. The misclassifications (false negatives) observed while testing on unseen attack datasets can be attributed to scenarios where the attack message flow closely resembles that of the normal messages within the observed block of messages at a given time.
The inference performance of the QCAE-SA model is compared against the following IDSs proposed in the literature: XGBoost [4], Random Forest [40], LSTM [19] and G-IDCS [36], with the first three methods using supervised learning with labelled benign and attack samples, as opposed to the QCAE-SA which was trained exclusively on benign data.
-
Sonata: For the flooding attack, the QCAE-SA model performs better than [4] by in terms of F1 score, while being slightly less than [19, 40] by and almost equal to [36]. For the fuzzing attack, the QCAE-SA model performs better than [4] by in terms of F1 score, while being slightly less than [19, 36, 40] by , & respectively. For the malfunction attack, the QCAE-SA model suffers from a higher FNR, which leads to it being less than [4, 19, 36, 40] by in terms of F1 score.
-
Spark: For the flooding attack, the QCAE-SA model performs better than [4] by in terms of F1 score, while being slightly less than [19, 36, 40] by . For fuzzing attacks, the QCAE-SA model performs better than [4] by while being slightly less than [19, 34, 36, 40] by , , & respectively. For malfunction attacks, the QCAE-SA model suffers from a higher FNR, which leads to it being less than [4, 19, 36, 40] by in terms of F1 score.
The loss in performance for the malfunction attack can be attributed to the fact that these messages resemble the normal ECU communication closely. The detailed results of this model against these works can be found in Table 6 & Table 7 respectively.
While evaluated independently due to differing input granularity and dataset availability, QLSTM-IDS and QCAE-IDS are complementary. Together, they enable a dual IDS architecture: QLSTM-IDS ensures accurate detection of known attacks at the message level, while QCAE-IDS adds robustness against novel or unseen attacks at the block level.
4.2 Detection Latency
One of the principal challenges in deploying IDSs in in-vehicle networks is the processing latency associated with complex detection models. To examine the real-time viability of our proposed low-precision QLSTM-IDS and QCAE-IDS accelerators, we integrated both directly into the CAN
Table 6. Accuracy metric comparison (%) of the QCAE-SA model for the Sonata subset of SA dataset against the reported literature on the Flooding, Fuzzing and Malfunction attacks.
| Attack | Model | Precision | Recall | F1 |
|---|---|---|---|---|
| Flooding | XGBoost [4] | 100 | 90 | 94.74 |
| RF [40] | 100 | 100 | 100 | |
| G-IDCS [36] | 99.72 | 99.72 | 99.72 | |
| LSTM [19] | - | 100 | 100 | |
| QCAE-SA | 100 | 99.28 | 99.64 | |
| Fuzzing | XGBoost [4] | 99.98 | 99.08 | 99.53 |
| RF [40] | 99.79 | 99.93 | 99.86 | |
| G-IDCS [36] | 100 | 100 | 100 | |
| LSTM [19] | - | 99.95 | 99.96 | |
| QCAE-SA | 100 | 99.5 | 99.75 | |
| Malfunction | XGBoost [4] | 99.92 | 100 | 99.96 |
| RF [40] | 99.90 | 99.98 | 99.94 | |
| G-IDCS [36] | 100 | 99.64 | 99.82 | |
| LSTM [19] | - | 100 | 100 | |
| QCAE-SA | 100 | 94.24 | 97.04 |
Table 7. Accuracy metric comparison (%) of the QCAE-SA model for the Spark subset of SA dataset against the reported literature on the Flooding, Fuzzing and Malfunction attacks.
| Attack | Model | Precision | Recall | F1 |
|---|---|---|---|---|
| Flooding | XGBoost [4] | 100 | 90 | 94.74 |
| RF [40] | 100 | 100 | 100 | |
| LSTM [19] | - | 100 | 100 | |
| G-IDCS [36] | 99.65 | 100 | 99.83 | |
| QCAE-SA | 98.21 | 100 | 98.88 | |
| Fuzzing | XGBoost [4] | 97.34 | 92 | 94.6 |
| RF [40] | 99.79 | 99.93 | 99.86 | |
| LSTM [19] | - | 98.23 | 98.31 | |
| G-IDCS [36] | 98.92 | 100 | 99.46 | |
| QCAE-SA | 100 | 98.39 | 99.19 | |
| Malfunction | XGBoost [4] | 99.80 | 100 | 99.90 |
| RF [40] | 99.90 | 99.98 | 99.94 | |
| LSTM [19] | - | 100 | 100 | |
| G-IDCS [36] | 99.36 | 100 | 99.68 | |
| QCAE-SA | 97.08 | 94.53 | 94.99 |
network controller and conducted detailed hardware based latency measurements. In each case, the controller's internal buffers were pre-loaded with representative CAN messages from the evaluation datasets, and latency was measured from the point of data availability at the controller interface to the generation of classification results. The reported latency comprises (i) IDS inference time per message for QLSTM-IDS and per block for QCAE-IDS and (ii) the Zynq processor's readout time for transferring results from the accelerators. Timing commences when the controller asserts the data-valid signal. Two measurement flows were considered:
-
Direct interface path: Data is delivered directly from the CAN controller interface to the IDS hardware chain, thereby isolating hardware latency.
-
AXI-DMA path: CAN messages are transferred via AXI-DMA from the PYNQ interface, such that latency also includes data movement overheads. In this case, the timer is triggered immediately prior to asserting the IDS enable input, and the multiplexer is configured to the DMA input.
Both flows inherently capture operating system and driver overheads introduced by the PYNQ image on the ARM cores. Minimal variation was observed across the two setups, and all results were averaged across multiple runs to mitigate OS- and software-level jitter. The QLSTM-IDS accelerator achieved an end-to-end latency of ms per message, corresponding to a throughput of messages/s. The block-based QCAE-IDS achieved a latency of ms per block of 100 frames. For the latter, a ping-pong buffering scheme in programmable logic ensures that one buffer accumulates incoming frames while the other is processed, effectively concealing inference latency within block reception and enabling real-time operation under high-load CAN traffic. The two accelerators are implemented as independent, spatially allocated hardware pipelines and therefore do not require time-multiplexed execution or software-level scheduling between the QLSTM-IDS and QCAE-IDS. Each incoming CAN message is forwarded to the QLSTM-IDS processing path while its CAN ID is concurrently accumulated in the active QCAE-IDS ping-pong buffer.
When benchmarked against prior work, these results underscore the efficiency of the proposed approach as shown in Table 8. The QLSTM-IDS delivers a reduction in latency compared with MTH-IDS [59], the most directly comparable per-message technique. While our earlier work
Khandelwal et al.
Table 8. Detection latency comparison of the proposed IDS against other state-of-the-art IDSs reported in literature.
| Models | Latency | Frames | Platform |
|---|---|---|---|
| GRU [31] | 890 ms | 5000 CAN frames | Jetson Xavier NX |
| MLIDS [13] | 275 ms | per CAN frame | GTX Titan X |
| NovelADS [2] | 128.7 ms | 100 CAN frames | Jetson Nano |
| TAN-IDS [34] | 11.6 ms | 128 CAN frames | - |
| DCNN [46] | 5 ms | 29 CAN frames | Tesla K80 |
| TCAN-IDS [8] | 3.4 ms | 64 CAN frames | Jetson AGX |
| MTH-IDS [59] | 0.574 ms | per CAN frame | Raspberry Pi 3 |
| QMLP-IDS [21] | 0.24 ms | per CAN frames | Zynq Ultrascale+ |
| BIDS [38] | 0.17 ms | 48 CAN frames | Zynq |
| CQMLP-IDS [22] | 0.11 ms | per CAN frames | Zynq Ultrascale+ |
| QCAE-IDS | 0.42 ms | 100 CAN frames | Zynq Ultrascale+ |
| QLSTM-IDS | 0.25 ms | per CAN frame | Zynq Ultrascale+ |
on quantised MLPs [20, 22] achieved lower raw latency due to reduced computational complexity, those methods relied on sliding window block processing, whereas QLSTM-IDS provides true per-message granularity, a critical requirement for real-time intrusion detection. Likewise, the quantised QCAE-SA yields a latency improvement relative to the unsupervised Transformer IDS of [34], while offering performance nearly identical to that of an int8 CAE deployed on the Jetson Xavier GPU (0.41 ms). The reported results were obtained at an accelerator frequency of 150 MHz; however, the relatively high overheads of the PYNQ read/write APIs indicate that further reductions are achievable under bare-metal or RTOS deployments. Collectively, these findings demonstrate that QLSTM-IDS achieves fine-grained, low-latency intrusion detection, whereas QCAE-IDS provides efficient block-level detection with strong robustness to unseen attacks. Both approaches substantially outperform or match contemporary software- and hardware-based IDS implementations, confirming their suitability for latency-critical CAN environments. Since automotive systems employ heterogeneous computing platforms with substantially different capabilities, the reported latency values should be interpreted in the context of their respective target applications, input granularities, and measurement protocols. Accordingly, the comparison illustrates the deployment-level implications of different IDS integration approaches rather than providing a direct platform-normalised performance benchmark.
4.3 Energy & Resource Utilisation
To evaluate the energy consumption of the dual-IDS system, we employ the pynq-rails feature from the PYNQ-PMBus package, which can be used to monitor and isolate the power rails of the processor subsystem (ARM-cores) and programmable logic (logic region) on the Zynq Ultrascale+ device. To measure the energy cost of the IDSs, we monitor and isolate any power rails that power the logic region of the Zynq, while triggering the IDS to perform inference on a test dataset. The measurements are averaged over 10000 messages and inference operations, with each new message arriving at the peak rate (4000 messages per second) determined from the latency measurement. At this operating point, the energy consumption is per QLSTM-IDS frame-level inference and per QCAE-IDS block-level inference, corresponding to when each accelerator performs one inference. These values are of the same order of magnitude as the reported energy consumption of GRU [31] (1.77 mJ) and MTH-IDS [59] (1.29 mJ) per inference respectively. While
Table 9. The resource consumption overheads of QLSTM-IDS, the QCAE-IDS and the CAN Controller on the PL region of the Zynq XCZU7EV SoC.
| Function | LUTs (%) | FFs (%) | LUTRAM (%) | BRAMs (%) | DSPs (%) |
|---|---|---|---|---|---|
| QLSTM-IDS | 40902 (17.75) | 11234 (2.44) | 4669 (4.59) | 23.5 (7.53) | 12 (0.69) |
| QCAE-IDS | 39956 (17.34) | 51957 (11.1) | - | 50 (16.51) | 125 (7.18) |
| CAN-NC | 887 (0.38) | 625 (0.14) | 18 (0.02) | - | - |
| Overall | 81745 (35.47) | 63816 (13.68) | 4687 (4.61) | 73.5 (24.04) | 137 (7.87) |
Table 10. Performance comparison of the QCAE-CH & the proposed QCAE-IDS model based on per message latency (ms), resource (%), & power consumption (W).
| Model | Latency (ms) | % Resource Utilisation | Power (W) | |||||
|---|---|---|---|---|---|---|---|---|
| LUT | FF | DSP | BRAM | URAM | Idle | Active | ||
| QCAE-CH (B4096) | 0.43 | 27.17 | 25.03 | 40.74 | 35.42 | 47.92 | 4.36 | 4.89 |
| QCAE-IDS (B512) | 0.42 | 17.34 | 11.10 | 7.18 | 16.51 | 12.5 | 2.61 | 3.11 |
this consumption is marginally higher than the energy consumed by other quantised MLP models, our dual-IDS model represents a better trade-off including:
• multi-class attack classification with higher accuracy
• benign-trained detection of CAN-ID sequence anomalies, and
• improved generalisability across diverse attack modes and datasets.
We further assess the resource utilisation of the dual-IDS accelerator and the CAN network controller (CAN-NC), with metrics gathered post-implementation via Vitis-HLS/Vivado. As detailed in Table 9, the accelerator uses less than 40% of LUTs and under 15% of flip-flops (FFs), leaving substantial resources available for additional accelerators or applications on the FPGA. This efficient resource utilisation highlights the design's scalability and flexibility, allowing other concurrent workloads to be offloaded from the ECU to hardware blocks on the logic region, without affecting IDS functionality. Table 10 presents a comparison between the optimised QCAE model and the prior implementation from [23], referred to as QCAE-CH, in terms of resource utilisation, inference latency, and energy consumption. The proposed QCAE-IDS achieves significant improvements on the XCZU7EV device, reducing LUT usage by 10%, FFs by 14%, DSPs by 33%, BRAM by 19% and URAM usage by 35% respectively. Additionally, it achieves a 1.57× reduction in active power consumption while maintaining the same processing latency as the QCAE-CH model. Since the QLSTM-IDS and QCAE-IDS models occupy separate, statically allocated FPGA resources and use independent I/O paths, they operate concurrently without sharing compute resources or introducing runtime resource contention.
4.4 Discussion : QNNs proposed as IDSs
As discussed in the preceding sections, several quantised IDS models have recently been proposed in the research literature to reduce the model complexity and energy consumption. This subsection examines their accuracy metrics and deployment statistics in comparison to the proposed quantised LSTM-based IDS (QLSTM-IDS), which are shown in Table 11. In [38], the authors present a two-stage IDS consisting of a Binarized Neural Network (BNN) and a Generative Adversarial Network
Khandelwal et al.
(GAN). Their model uses a sequence of CAN IDs with a window length of 48 messages as input features. However, using only CAN IDs as input features limits the model's ability to detect attacks that inject malicious payloads without affecting the IDs. Additionally, the 1-bit quantised IDS has a higher misclassification rate compared to the proposed QLSTM-IDS. In [21], one of our previous works, we propose two separate 8-bit quantised MLP models as IDSs to detect DoS, Fuzzing, and Spoofing (RPM and Gear) attacks. The key idea was to optimise the learned features for similar attack vectors, thus improving the individual detector's performance while reducing the model complexity. We observe that the proposed QLSTM-IDS achieves a lower misclassification rate compared to the tailored models while reducing the energy consumption per inference by over . Similarly, in [22], we explored extreme quantisation using a 2-bit custom quantised MLP (CQMLP-IDS) to perform multi-class classification to detect DoS, Fuzzing, and RPM-Spoofing attacks. This was achieved using a conservative labelling scheme to improve model convergence and to achieve high accuracy, using a sliding window approach over input (and previous) CAN messages. With the final implementation, the CQMLP only manages to achieve a slightly higher misclassification rate than the proposed QLSTM-IDS, while the window-based labels and thresholding scheme can lead to dropped benign messages at runtime. In [60], authors propose a fully binarised neural network as an IDS, with very low detection latency of 0.04 ms. However, the authors validate the models' performance on a proprietary custom dataset, with the results showing lower accuracy metrics ( 90.5%) for random ID, replay, spoofing and other hybrid attacks in this dataset. Compared to other implementations in Table 11, QLSTM-IDS achieves the lowest misclassification rate (11/620,200), outperforming QMLP, BIDS, and CQMLP by a significant margin. It uses moderate hardware resources 17.75% LUTs and 2.44% FFs respectively lower than QMLP and BIDS while maintaining minimal BRAM usage (0.82 Mb). Although its energy consumption (0.8 mJ) is higher than CQMLP and BIDS, it remains more efficient than QMLP. Each inference takes only 0.25 ms, making it well-suited for real-time detection. Similarly, we previously introduced a unseen attack detection autoencoder, evaluated on the CAR Hacking dataset [23]. In this work, we proposed QCAE-IDS, an optimised variant of that autoencoder employing filter pruning techniques. QCAE-IDS is tested on the Survival Analysis dataset, demonstrating robust unknown attack detection capabilities with high accuracy, while also achieving a improvement in per-inference energy efficiency over the previous implementation. The model also achieves a reduction in processing latency against the other unsupervised learning based transformer based IDS proposed in the literature [34]. Overall, QLSTM-IDS along with the QCAE-IDS offers the best balance between accuracy, resource utilisation, and deployability among the evaluated models. Note, the reported classification metrics in the paper are point estimates for a single selected trained variant for both the models and the corresponding fixed data splits. Repeated seed and alternative split experiments remain part of the future work.
5 Conclusion & Future Work
In this paper, we proposed a dual-IDS framework tailored for modern automotive networks, addressing both known and unknown attack vectors through supervised and unsupervised learning approaches. The first component, a quantised LSTM-Dense model (QLSTM-IDS), is designed to detect multiple attack types including DoS/Flooding, Fuzzing, and Spoofing/Malfunction attacks with high accuracy. We designed a custom export flow for converting the QLSTM model into the intermediate representation and further developed custom transformations that mapped the compute nodes in the intermediate representations to existing hardware library blocks in the FINN compiler flow, to generate the dataflow accelerator of our model. The model is trained using quantisation-aware techniques via the Brevitas library, and efficiently mapped to a hardware accelerator using AMD's FINN toolchain. In addition to the supervised QLSTM-IDS, we also introduce
Table 11. This table compares the proposed QLSTM-IDS and QCAE-IDS with other QNN models from the research literature, evaluating them in terms of resource utilization, energy consumption, and overall misclassification rates as reported on the car hacking dataset. The accuracy number for the QCAE-IDS are reported on the Sonata subset of the survival analysis dataset.
| Model | LUTs | FFs | BRAM (Mb) | Energy (mJ) | Misclassifications |
|---|---|---|---|---|---|
| QMLP [21] | 56,733 (24.6%) | 72,147 (15.6%) | 3.06 | 1.96 | 75/200,000 |
| CQMLP [22] | 3999 (1.74%) | 4524 (0.98%) | 0.84 | 0.23 | 147/180,000 |
| BIDS [38] | 23,256 (10.09%) | 37,943 (8.2%) | 4.07 | 0.35 | 70/187,062 |
| QLSTM-IDS | 40,902 (17.75%) | 11,234 (2.44%) | 0.82 | 0.8 | 11/620,200 |
| QCAE-IDS | 39,956 (17.34%) | 51,957 (11.1%) | 1.74 | 1.1 | 29/3011 |
an 8-bit quantised convolutional autoencoder (QCAE-IDS) as an unsupervised IDS capable of detecting unknown attacks. The demonstrated QCAE capability is limited to previously unseen anomalies that alter CAN-ID sequence patterns. Detection of attacks that modify only payload content while preserving normal identifier sequences is not established in this work. The hardware accelerator for the QCAE-IDS is generated using the Vitis-AI framework from AMD. We present a complete deployment pipeline targeting the Zynq Ultrascale+ XCZU7EV (ZCU104) platform, where the IDSs are implemented on the same platform and integrated close to the CAN network interface, minimising software overhead and enabling real-time operation. QLSTM-IDS is evaluated on two real world public attack datasets namely CAR Hacking and Survival Analysis while QCAE-IDS (an optimised version of our previous implementation) is tested using the survival analysis dataset. Both the models demonstrate strong performance in terms of detection accuracy, inference latency, and energy efficiency. Our evaluation confirms that the QLSTM-IDS achieves exceptional average classification accuracies of 99.998% and 99.90% across the two datasets, with an energy consumption of only 0.8 mJ per inference and a processing throughput of up to 4,000 CAN messages per second. The QCAE model also achieves > 99% accuracy when tested on the survival analysis dataset (Sonata and Spark vehicles) showing it's efficacy in detecting unknown attacks. Further, the model achieved a block processing latency of 0.42 ms and energy consumption of only 1.1 mJ per inference. The results obtained highlight the suitability of the deployment models for real-time, resource-constrained embedded environments. Together the supervised and unsupervised IDS models form a robust, flexible, and deployable solution for securing legacy automotive networks. To encourage further research, we have open-sourced our training pipelines, hardware design files, and deployment flows, providing a foundation for future work on efficient IDS architectures for next-generation vehicular systems.
6 Acknowledgments
We would like to express our sincere gratitude to Jakoba Petri-König and Thomas Preußer from the AMD research team in Dublin, Ireland, for their invaluable assistance in deploying the quantised version of LSTMs on FPGAs. This research was also supported by grants from NVIDIA (academic hardware grant program) and utilised NVIDIA RTX A6000 GPU for model training purposes.
References
[1] Advanced Micro Devices, Inc. 2025. PYNQ. Software. https://pynq.io BSD 3-Clause License. Source code available at https://github.com/Xilinx/PYNQ.
[2] Kushagra Agrawal, Tejasvi Alladi, Ayush Agrawal, Vinay Chamola, and Abderrahim Benslimane. 2022. NovelADS: A Novel Anomaly Detection System for Intra-Vehicular Networks. IEEE Transactions on Intelligent Transportation
Khandelwal et al.
Systems (2022).
[3] Omar Y Al-Jarrah, Carsten Maple, Mehrdad Dianati, David Oxtoby, and Alex Mouzakitis. 2019. Intrusion detection systems for intra-vehicle networks: A review. IEEE Access 7 (2019), 21266–21289.
[4] Afia Anjum, Paul Agbaje, Sena Hounsinou, and Habeeb Olufowobi. 2022. In-vehicle network anomaly detection using extreme gradient boosting machine. In Proceedings of the Mediterranean Conference on Embedded Computing (MECO). IEEE, 1–6.
[5] Kavya Balasubramanian, Adithya Gowda Baragur, Denis Donadel, Dinuka Sahabandu, Alessandro Brighente, Bhaskar Ramasubramanian, Mauro Conti, and Radha Poovendran. 2024. CANLP: NLP-Based Intrusion Detection System for CAN. In Proceedings of the ACM/SIGAPP Symposium on Applied Computing. 212–214.
[6] Mehmet Bozdal, Mohammad Samie, and Ian Jennions. 2018. A Survey on CAN Bus Protocol: Attacks, Challenges, and Potential Solutions. In Proceedings of the International Conference on Computing, Electronics Communications Engineering (iCCECE). 201–205. doi:10.1109/iCCECOME.2018.8658720
[7] CAR Hacking Dataset. 2020. https://ocslab.hksecurity.net/Datasets/CAN-intrusion-dataset.
[8] Pengzhou Cheng, Kai Xu, Simin Li, and Mu Han. 2022. TCAN-IDS: Intrusion Detection System for Internet of Vehicle Using Temporal Convolutional Attention Network. Symmetry 14, 2 (2022), 310.
[9] Kyong-Tak Cho and Kang G Shin. 2016. Fingerprinting electronic control units for vehicle intrusion detection. In {USENIX} Security Symposium ({USENIX} Security 16). 911–927.
[10] Kyong-Tak Cho and Kang G Shin. 2017. Viden: Attacker identification on in-vehicle networks. In Proceedings of the ACM SIGSAC Conference on Computer and Communications Security. 1109–1123.
[11] Amit Chougule, Ishan Kulkarni, Tejasvi Alladi, Vinay Chamola, and Fei Richard Yu. 2024. HybridSecNet: In-Vehicle Security on Controller Area Networks Through a Hybrid Two-Step LSTM-CNN Model. IEEE Transactions on Vehicular Technology 73, 10 (2024), 14580–14591. doi:10.1109/TVT.2024.3413849
[12] Paulo Freitas De Araujo-Filho, Antônio J Pinheiro, Georges Kaddoum, Divanilson R Campelo, and Fabio L Soares. 2021. An Efficient Intrusion Prevention System for CAN: Hindering Cyber-Attacks With a Low-Cost Platform. IEEE Access 9 (2021), 166855–166869.
[13] Araya Kibrom Desta, Shuji Ohira, Ismail Arai, and Kazutoshi Fujikawa. 2020. MLIDS: Handling Raw High-Dimensional CAN Bus Data Using Long Short-Term Memory Networks for Intrusion Detection in In-Vehicle Networks. In Proceedings of the International Telecommunication Networks and Applications Conference (ITNAC). IEEE, 1–7.
[14] Araya Kibrom Desta, Shuji Ohira, Ismail Arai, and Kazutoshi Fujikawa. 2022. Rec-CNN: In-vehicle networks intrusion detection using convolutional neural networks trained on recurrence plots. Vehicular Communications (2022).
[15] Miro Enev, Alex Takakuwa, Karl Koscher, and Tadayoshi Kohno. 2016. Automobile Driver Fingerprinting. Proceedings on Privacy Enhancing Technologies 2016, 1 (2016), 34–50.
[16] Nasreen Fathima, Akshara Pramod, Yash Srivastava, Anusha Maria Thomas, et al. 2021. Two-stage deep stacked autoencoder with shallow learning for network intrusion detection system. arXiv preprint arXiv:2112.03704 (2021).
[17] Mee Lan Han, Byung Il Kwak, and Huy Kang Kim. 2018. Anomaly intrusion detection method for vehicular networks based on survival analysis. Vehicular communications 14 (2018), 52–63.
[18] Florian Hartwich et al. 2012. CAN with flexible data-rate. In Proceedings of the International Conference on Communications (iCC). Citeseer, 1–9.
[19] Md Delwar Hossain, Hiroyuki Inoue, Hideya Ochiai, Doudou Fall, and Youki Kadobayashi. 2020. LSTM-based intrusion detection system for in-vehicle can bus communications. IEEE Access 8 (2020), 185489–185502.
[20] Shashwat Khandelwal and Shanker Shreejith. 2022. A Lightweight Multi-Attack CAN Intrusion Detection System on Hybrid FPGAs. In Proceedings of the International Conference on Field Programmable Logic and Applications (FPL). IEEE, 425–429.
[21] Shashwat Khandelwal and Shanker Shreejith. 2022. A Lightweight FPGA-based IDS-ECU Architecture for Automotive CAN. In Proceedings of the International Conference on Field-Programmable Technology (ICFPT). 1–9. doi:10.1109/ICFPT56656.2022.9974508
[22] Shashwat Khandelwal and Shanker Shreejith. 2023. Exploring Highly Quantised Neural Networks for Intrusion Detection in Automotive CAN. In Proceedings of the International Conference on Field-Programmable Logic and Applications (FPL). IEEE, 235–241.
[23] Shashwat Khandelwal and Shanker Shreejith. 2023. Real-time zero-day intrusion detection system for automotive controller area network on fpgas. In 2023 IEEE 34th International Conference on Application-specific Systems, Architectures and Processors (ASAP). IEEE, 139–146.
[24] Shashwat Khandelwal and Shanker Shreejith. 2025. Seccan: An extended can controller with embedded intrusion detection. IEEE Embedded Systems Letters 18, 2 (2025), 123–127.
[25] Shashwat Khandelwal, Eashan Wadhwa, and Shanker Shreejith. 2022. Deep Learning-based Embedded Intrusion Detection System for Automotive CAN. In Proceedings of the International Conference on Application-specific Systems, Architectures and Processors (ASAP). IEEE, 88–92.
[26] Shashwat Khandelwal, Anneliese Walsh, and Shanker Shreejith. 2023. Quantised Neural Network Accelerators for Low-Power IDS in Automotive Networks. In 2023 Design, Automation & Test in Europe Conference & Exhibition (DATE). IEEE, 1–2.
[27] Karl Koscher, Stefan Savage, Franziska Roesner, Shwetak Patel, Tadayoshi Kohno, Alexei Czeskis, Damon McCoy, Brian Kantor, Danny Anderson, Hovav Shacham, et al. 2010. Experimental security analysis of a modern automobile. In Proceedings of the IEEE Symposium on Security and Privacy. IEEE Computer Society, 447–462.
[28] Hyunsung Lee, Seong Hoon Jeong, and Huy Kang Kim. 2017. OTIDS: A novel intrusion detection system for in-vehicle network by using remote frame. In Proceedings of the Annual Conference on Privacy, Security and Trust (PST). IEEE, 57–5709.
[29] Congli Ling and Dongqin Feng. 2012. An algorithm for detection of malicious messages on CAN buses. In Proceedings of the Conference on Information Technology and Computer Science, Vol. 10. Atlantis Press.
[30] Wei Lo, Hamed Alqahtani, Kutub Thakur, Ahmad Almadhor, Subhash Chander, and Gulshan Kumar. 2022. A hybrid deep learning based intrusion detection system using spatial-temporal representation of in-vehicle network traffic. Vehicular Communications 35 (2022), 100471.
[31] Haoyu Ma, Jianqiu Cao, Bo Mi, Darong Huang, Yang Liu, and Shaoqian Li. 2022. A GRU-Based Lightweight System for CAN Intrusion Detection in Real Time. Security and Communication Networks 2022 (2022).
[32] Subhojeet Mukherjee, Hossein Shirazi, Indrakshi Ray, Jeremy Daily, and Rose Gamble. 2016. Practical DoS attacks on embedded networks in commercial vehicles. In Proceedings of the International Conference on Information Systems Security. Springer.
[33] Sandeep Nair Narayanan, Sudip Mittal, and Anupam Joshi. 2015. Using data analytics to detect anomalous states in vehicles. arXiv preprint arXiv:1512.08048 (2015).
[34] Trieu Phong Nguyen, Heungwoo Nam, and Daehee Kim. 2023. Transformer-Based Attention Network for In-Vehicle Intrusion Detection. IEEE Access 11 (2023), 55389–55403. doi:10.1109/ACCESS.2023.3282110
[35] Andrea Palanca, Eric Evenchick, Federico Maggi, and Stefano Zanero. 2017. A stealth, selective, link-layer denial-of-service attack against automotive networks. In Proceedings of the International Conference on Detection of Intrusions and Malware, and Vulnerability Assessment. Springer, 185–206.
[36] Sung Bum Park, Hyo Jin Jo, and Dong Hoon Lee. 2023. G-ids: Graph-based intrusion detection and classification system for can protocol. IEEE Access 11 (2023), 39213–39227.
[37] Porsche Engineering. 2025. https://www.porscheengineering.com/en/peg/newsroom/pem-2-24/turning-dc-into-ac/.
[38] Auangkun Rangsikunpum, Sam Amiri, and Luciano Ost. 2024. BIDS: An efficient Intrusion Detection System for in-vehicle networks using a two-stage Binarised Neural Network on low-cost FPGA. Journal of Systems Architecture (2024), 103285.
[39] Vladimir Rybalkin, Alessandro Pappalardo, Muhammad Mohsin Ghaffar, Giulio Gambardella, Norbert Wehn, and Michaela Blott. 2018. FINN-L: Library extensions and design trade-off analysis for variable precision LSTM networks on FPGAs. In Proceedings of the International Conference on Field Programmable Logic and Applications (FPL). IEEE, 89–897.
[40] Vita Santa Barletta, Danilo Caivano, Mirko De Vincentiis, and Antonio Piccinno. 2024. Black Mamba: A Multi-class Random Forest for Automotive Intrusion Detection. In Proceedings of the Italian Conference on ICT for Smart Cities and Communities.
[41] Eunbi Seo, Hyun Min Song, and Huy Kang Kim. 2018. GIDS: GAN based intrusion detection system for in-vehicle network. In Proceedings of the Annual Conference on Privacy, Security and Trust (PST). IEEE, 1–6.
[42] Shanker Shreejith and Suhaib A. Fahmy. 2015. Extensible FlexRay Communication Controller for FPGA-Based Automotive Systems. IEEE Transactions on Vehicular Technology 64, 2 (2015), 453–465. doi:10.1109/TVT.2014.2324532
[43] Shanker Shreejith, Philipp Mundhenk, Andreas Ettner, Suhaib A Fahmy, Sebastian Steinhorst, Martin Lukasiewycz, and Samarjit Chakraborty. 2017. VEGa: A high performance vehicular ethernet gateway on hybrid FPGA. IEEE Trans. Comput. 66, 10 (2017), 1790–1803.
[44] Shanker Shreejith, Kizhepatt Vipin, Suhaib A Fahmy, and Martin Lukasiewycz. 2013. An approach for redundancy in FlexRay networks using FPGA partial reconfiguration. In 2013 Design, Automation & Test in Europe Conference & Exhibition (DATE). IEEE, 721–724.
[45] Shreejith, Shanker and Fahmy, Suhaib A. and Lukasiewycz, Martin. 2013. Reconfigurable Computing in Next-Generation Automotive Networks. IEEE Embedded Systems Letters 5, 1 (2013), 12–15. doi:10.1109/LES.2013.2243698
[46] Hyun Min Song, Jiyoung Woo, and Huy Kang Kim. 2020. In-vehicle network intrusion detection using deep convolutional neural network. Vehicular Communications 21 (2020), 100198.
[47] Dario Stabili, Mirco Marchetti, and Michele Colajanni. 2017. Detecting attacks to internal vehicle networks through Hamming distance. In Proceedings of the AEIT International Annual Conference. IEEE, 1–6.
[48] Yaman Umuroglu and Magnus Jahre. 2017. Streamlined deployment for quantized neural networks. arXiv preprint arXiv:1709.04060 (2017).
Khandelwal et al.
[49] R. B. GmbH. 1991. CAN Specification, Version 2.0.
[50] Xilinx. 2020. Zynq DPU v3.2.
[51] Daksh Kumar Vasistha. 2017. Detecting anomalies in controller area network for automobiles. Ph. D. Dissertation.
[52] Tuan Phan Vuong, George Loukas, and Diane Gan. 2015. Performance evaluation of cyber-physical intrusion detection on a robotic vehicle. In Proceedings of the International Conference on Computer and Information Technology. IEEE, 2106–2113.
[53] Marc Weber, Simon Klug, Eric Sax, and Bastian Zimmer. 2018. Embedded hybrid anomaly detection for automotive CAN communication. In Proceedings of the European Congress on Embedded Real Time Software and Systems.
[54] Shuang Wu, Guoqi Li, Feng Chen, and Luping Shi. 2018. Training and inference with integers in deep neural networks. arXiv preprint arXiv:1802.04680 (2018).
[55] Wufei Wu, Yizhi Huang, Ryo Kurachi, Gang Zeng, Guoqi Xie, Renfa Li, and Keqin Li. 2018. Sliding window optimized information entropy analysis method for intrusion detection on in-vehicle networks. IEEE Access 6 (2018).
[56] Wufei Wu, Renfa Li, Guoqi Xie, Jiyao An, Yang Bai, Jia Zhou, and Keqin Li. 2020. A Survey of Intrusion Detection for In-Vehicle Networks. IEEE Transactions on Intelligent Transportation Systems 21, 3 (2020), 919–933. doi:10.1109/TITS.2019.2908074
[57] Xilinx. 2021. Vitis AI User Guide.
[58] Li Yang, Abdallah Moubayed, Ismail Hamieh, and Abdallah Shami. 2019. Tree-based intelligent intrusion detection system in internet of vehicles. In Proceedings of the IEEE Global Communications Conference (GLOBECOM). IEEE, 1–6.
[59] Li Yang, Abdallah Moubayed, and Abdallah Shami. 2021. MTH-IDS: A Multitiered Hybrid Intrusion Detection System for Internet of Vehicles. IEEE Internet of Things Journal 9, 1 (2021), 616–632.
[60] Linxi Zhang, Xuke Yan, and Di Ma. 2022. A Binarized Neural Network Approach to Accelerate in-Vehicle Network Intrusion Detection. IEEE Access 10 (2022), 123505–123520. doi:10.1109/ACCESS.2022.3208091