Next Article in Journal
A Pseudo-Point-Based Adaptive Fusion Network for Multi-Modal 3D Detection
Next Article in Special Issue
NPU-Aware Fault Injection and Statistical Sensitivity Analysis for CNN Reliability Evaluation
Previous Article in Journal
A Distributed Hybrid Extended Kalman Filtering–Machine Learning Model for Trust-Based Authentication and Authorization in IoT Networks
Previous Article in Special Issue
An Attention-Enhanced Network for Person Re-Identification via Appearance–Gait Fusion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

FPGA-Based Dual Learning Model for Wheel Speed Sensor Fault Detection in ABS Systems Using HIL Simulations

Department of Electrical and Computer Engineering, Université Laval, Québec, QC G1V 0A6, Canada
*
Author to whom correspondence should be addressed.
Electronics 2026, 15(1), 58; https://doi.org/10.3390/electronics15010058
Submission received: 10 November 2025 / Revised: 9 December 2025 / Accepted: 16 December 2025 / Published: 23 December 2025
(This article belongs to the Special Issue Artificial Intelligence and Microsystems)

Abstract

The rapid evolution of modern vehicles into intelligent and interconnected systems presents new complexities in both functional safety and cybersecurity. In this context, ensuring the reliability and integrity of critical sensor data, such as wheel speed inputs for anti-lock brake systems (ABS), is essential. Effective detection of wheel speed sensor faults not only improves functional safety, but also plays a vital role in keeping system resilience against potential cyber–physical threats. Although data-driven approaches have gained popularity for system development due to their ability to extract meaningful patterns from historical data, a major limitation is the lack of diverse and representative faulty datasets. This study proposes a novel dual learning model, based on Temporal Convolutional Networks (TCN), designed to accurately distinguish between normal and faulty wheel speed sensor behavior within a hardware-in-the-loop (HIL) simulation platform implemented on an FPGA. To address dataset limitations, a TruckSim–MATLAB/Simulink co-simulation environment is used to generate realistic datasets under normal operation and eight representative fault scenarios, yielding up to 5000 labeled sequences (balanced between normal and faulty behaviors) at a sampling rate of 60 Hz. Two TCN models are trained independently to learn normal and faulty dynamics, and fault decisions are made by comparing the reconstruction errors (MSE and MAE) of both models, thus avoiding manually tuned thresholds. On a test set of 1000 sequences (500 normal and 500 faulty) from the 5000 sample configuration, the proposed dual TCN framework achieves a detection accuracy of 97.8%, a precision of 96.5%, a recall of 98.2%, and an F1-score of 97.3%, outperforming a single TCN baseline, which achieves 91.4% accuracy and an 88.9% F1-score. The complete dual TCN architecture is implemented on a Xilinx ZCU102 FPGA evaluation kit (AMD, Santa Clara, CA, USA), while supporting real-time inference in the HIL loop. These results demonstrate that the proposed approach provides accurate, low-latency fault detection suitable for safety-critical ABS applications and contributes to improving both functional safety and cyber-resilience of braking systems.

1. Introduction

Modern vehicles integrate hundreds of electronic control units (ECUs) coordinating safety-critical functions such as braking, steering, and powertrain control [1]. As system complexity grows, so does the risk of component failures that can compromise vehicle safety. Among these, the anti-lock braking system (ABS) ECU plays a critical role in preventing wheel lockup during emergency braking, ensuring vehicle stability and steerability [2]. Wheel speed sensors provide essential input data to the ABS ECU; their failure or malfunction can lead to loss of braking effectiveness and steering control.
Detecting sensor faults in real time presents significant challenges. Traditional fault detection methods rely on manually defined thresholds and expert knowledge, making them time-consuming to develop and difficult to adapt to diverse operating conditions [3]. Furthermore, acquiring representative faulty sensor data for validation is problematic, as generating real faults in safety-critical systems is both risky and expensive [4]. Hardware-in-the-loop (HIL) simulation offers a controlled testing environment, but existing HIL-based fault detection approaches struggle with real-time performance requirements and adaptive fault classification [5,6].
Recent advances in deep learning, particularly Temporal Convolutional Networks (TCNs), have demonstrated superior performance in modeling sequential sensor data compared to recurrent architectures [7]. However, deploying these models on conventional computing platforms (CPUs/GPUs) introduces latency and power consumption incompatible with automotive real-time constraints. Field-Programmable Gate Arrays (FPGAs) provide an alternative, offering deterministic low-latency execution with significantly higher energy efficiency than GPUs [8].
This paper addresses these challenges by proposing a novel dual-learning framework based on TCNs for wheel speed sensor fault detection in ABS systems, implemented on FPGA hardware for real-time operation within HIL simulation platforms. Unlike conventional single-model approaches that learn only normal behavior, our dual-TCN architecture explicitly learns both normal and faulty sensor patterns, enabling threshold-free fault classification through comparative error analysis.
Main Contributions:
  • A novel dual-learning TCN framework that simultaneously models normal and faulty wheel speed sensor behaviors, achieving 97.8% classification accuracy without manual threshold tuning.
  • Real-time FPGA implementation enabling proactive fault detection before corrupted data reaches the ABS ECU.
  • A systematic co-simulation methodology using MATLAB/Simulink and TruckSim (v2020.X, Mechanical Simulation Corporation, Ann Arbor, MI, USA) to generate eight representative fault scenarios, addressing the challenge of acquiring realistic faulty sensor datasets.
  • Comprehensive validation on a HIL platform with a commercial Bendix EC-60 ABS ECU (Bendix Commercial Vehicle Systems LLC, Avon, OH, USA), demonstrating practical applicability to safety-critical automotive systems.
  • An extensible dual-TCN monitoring block that can be retrained and reused for other safety-critical ECUs and sensor-driven subsystems, enabled by its modest FPGA resource footprint and generic sequence-modeling design.
In this study, normal behavior refers to the wheel speed sensor operation under fault-free conditions, whereas abnormal behavior denotes sensor behavior in the presence of injected faults.
The remainder of this paper is organized as follows. Section 1 reviews related work on HIL-based ECU validation, data-driven fault diagnosis, and ABS sensor fault detection. Section 2 presents the ABS system model. Section 3 describes the proposed methodology, including data generation, dual-TCN architecture, and FPGA implementation. Section 4 details the experimental setup and HIL platform. Section 5 reports and discusses the experimental results. Finally, Section 6 concludes the paper.

2. Related Work

HIL simulation has become a standard tool for validating automotive ECUs under realistic but safe conditions [5,6]. In such platforms, real-time vehicle dynamics models are coupled with physical ECUs to reproduce road scenarios, driver inputs, and component faults. As HIL-based real-time simulation for embedded control development and automated testing has matured, increasing attention has been devoted to analyzing how complex embedded ECU control software (i.e., firmware/control logic) behaves under abnormal or faulted operating conditions. For instance, Poon et al. [9] demonstrated that an HIL platform with fault injection can be used to systematically evaluate electric vehicle drive systems. Similarly, Abboush et al. [10] implemented a real-time fault-injection framework on a MATLAB/Simulink-based HIL bench with a prototype ECU, where multiple classes of sensor and actuator faults are injected in software without modifying the plant model. In contrast, our work uses the HIL bench to host a learned dual-model monitor that distinguishes normal and faulty wheel-speed behavior online, providing continuous sensor health assessment rather than exhaustive fault-injection coverage.
Within braking systems, ABS ECUs are especially sensitive to the quality of wheel speed sensor signals, since inaccurate speed measurements directly affect braking performance and vehicle stability [2]. Prior work on ABS fault detection has explored model-based observers, heuristic rules, and data-driven classifiers to detect wheel lock, slip, or sensor malfunctions [2,4,11]. While these approaches can successfully identify certain fault types, they often focus either on high-level ABS performance or on specific failure patterns, and typically assume that faulty data can be collected directly on test vehicles [12]. The safety and practical challenges of generating diverse faults in real vehicles motivate the use of simulation-based data generation; however, only a limited number of studies exploit high-fidelity co-simulation tools such as TruckSim for systematic modeling of wheel speed sensor faults.
In parallel, advances in computing and storage have accelerated the adoption of data-driven methods for fault diagnosis [13]. Deep neural networks—such as autoencoders (AEs and DAEs), convolutional neural networks (CNNs), recurrent neural networks (RNNs), and temporal convolutional networks (TCNs)—have been successfully applied to detect and classify faults in industrial and automotive systems [14,15,16]. These models can automatically extract hierarchical features from raw signals and frequently outperform traditional model-based approaches. Nevertheless, many reported solutions assume the availability of large labeled datasets, suffer from imbalanced or scarce faulty samples [14], or follow a single-model anomaly-detection paradigm in which a network learns only normal behavior and a fixed reconstruction- or anomaly-score threshold is used to declare faults [17,18].
Recent work has applied such deep learning techniques to a range of safety-critical domains [19,20,21,22,23]. For automotive HIL testing, Abboush et al. [19] proposed a hybrid CNN–LSTM network deployed on a PC-based HIL bench to classify eight injected sensor and actuator faults in a gasoline engine ECU, reporting approximately 98.8% accuracy, precision, recall, and F1-score over nine classes. In contrast, the present work targets ABS wheel-speed sensors and integrates the fault-detection model directly into the HIL loop as an FPGA-resident accelerator, enabling deterministic real-time operation with low latency.
Beyond automotive systems, several authors have employed LSTMs, CNNs, and TCNs for fault diagnosis in other cyber–physical systems. Malhotra et al. [22] used LSTM networks for anomaly detection in spacecraft telemetry, training a single model on normal data and identifying faults via an anomaly-score threshold, achieving an anomaly recall of about 89%. Guo et al. [23] proposed a hierarchical adaptive CNN for bearing fault diagnosis and reported classification accuracies around 99% over ten fault classes. Fang et al. [20] combined an enhanced TCN with a meta-heuristic optimizer for nuclear power plant fault diagnosis, obtaining higher accuracy than conventional deep learning baselines. Similarly, Cummins et al. [21] used a TCN as a normal-only anomaly detector for bearing condition monitoring and augmented it with counterfactual explanations for what-if analysis. All of these methods instantiate the single-model paradigm described above, either directly classifying fault types with a single network or declaring anomalies via a tuned threshold on a normal-trained model.
Deploying deep learning models in real-time automotive environments also raises hardware constraints. GPUs, although powerful, are usually unsuitable for embedded ECUs due to power, cost, and integration limitations. FPGAs have therefore attracted increasing interest as neural network accelerators, offering an order-of-magnitude improvement in energy and delay efficiency compared with GPUs [8]. Several works report FPGA-based implementations of CNNs and RNNs for generic time-series processing, yet there is little research on FPGA-accelerated TCNs tailored to automotive HIL fault detection. Even fewer examples integrate such accelerators into a closed-loop HIL platform that interacts with a commercial ABS ECU.
Taken together, the existing literature reveals three main gaps. First, most HIL studies do not embed a dedicated, learning-based sensor health monitoring module directly within the HIL loop. Second, deep learning approaches for fault detection commonly rely on single-model architectures that require manual threshold tuning or do not explicitly model faulty behavior, which can reduce robustness across heterogeneous fault modes. Third, there is limited reported work on FPGA-based deployment of dual-learning models (normal vs. faulty) for real-time ABS sensor fault detection using realistic, simulation-derived datasets. The framework proposed in this paper addresses these gaps by: (i) integrating a dual-TCN sensor fault detection module into an ABS HIL platform; (ii) explicitly learning normal and faulty behavior through two complementary TCN models and using their comparative reconstruction errors as an implicit decision rule, thereby eliminating the need for manually tuned thresholds required by single-model schemes; and (iii) implementing the complete architecture on a Xilinx ZCU102 FPGA, demonstrating both high detection performance and feasibility for real-time embedded deployment.
Table 1 summarizes the position of the proposed framework relative to these representative methods in terms of target system, model type, learning scheme, deployment platform, and reported performance. Compared to this state of the art, our work introduces three complementary contributions: (i) a dual-learning TCN architecture that explicitly models both normal and faulty wheel-speed behavior and performs threshold-free discrimination via comparative reconstruction errors; (ii) a complete HIL-based workflow, from TruckSim/Simulink fault-scenario generation to closed-loop interaction with a commercial Bendix EC-60 ABS ECU; and (iii) an FPGA implementation that achieves 97.8% accuracy and a 97.3% F1-score on eight representative fault scenarios while using only 12.7% of LUTs, 19.1% of BRAMs, and 5.1% of DSP slices on a ZCU102 evaluation board (AMD, Santa Clara, CA, USA). This combination of dual learning, HIL integration, and resource-efficient FPGA deployment is, to the best of our knowledge, not jointly addressed in prior work.

3. ABS System Model

The ABS is a critical safety feature in modern vehicles designed to prevent wheel lock-up and maintain steering control during abrupt braking maneuvers. A standard four-wheel ABS configuration, illustrated in Figure 1, consists of wheel speed sensors, an ECU, a hydraulic modulator, and solenoid valves [24].
The ABS functions as a closed-loop control system. The wheel speed ω w is continuously measured by the sensors and transmitted to the ECU. Using this information, the ECU computes the wheel slip ratio λ , a key variable that determines whether the wheel is approaching lock-up:
λ = v r w ω w v ,
where v denotes the vehicle velocity and r w represents the effective wheel radius. When the slip ratio λ exceeds a predefined limit λ max , the ECU issues control commands to the hydraulic modulator to regulate the brake pressure applied to the wheel cylinder.
The rotational dynamics of the wheel can be expressed as:
J w d ω w d t = T b r w F x ,
where J w is the wheel’s moment of inertia, T b is the brake torque, and F x is the longitudinal tire–road interaction force. The brake torque is dynamically adjusted by the ECU through a feedback controller, typically implemented in a PID structure:
T b ( t ) = K p e ( t ) + K i 0 t e ( τ ) d τ + K d d e ( t ) d t , e ( t ) = λ target λ ( t ) .
This closed-loop operation enables real-time adjustment of braking pressure to maintain the desired slip ratio, thereby optimizing braking performance while preserving vehicle stability and steering control [25].

4. Methodology

The proposed methodology introduces an FPGA-based proactive framework for early sensor-level fault detection, thereby enhancing the reliability and safety of the ABS ECU. Unlike conventional approaches that rely solely on the ECU for anomaly detection, the proposed system monitors and analyzes wheel speed sensor data before it reaches the ECU, preventing the transmission of corrupted signals that could adversely affect braking performance.
The methodology is centered on a dual-learning framework employing TCNs. Two distinct TCN models are trained: one to represent normal sensor behavior and the other to represent faulty behavior. Each model predicts the expected wheel speed signal sequence based on its respective learned dynamics. The reconstruction errors between the predicted and observed signals are computed using both the Mean Squared Error (MSE) and the Mean Absolute Error (MAE). A decision logic block then compares these errors to classify the incoming signal as either normal or faulty.
To eliminate reliance on manually defined fault thresholds and enhance detection robustness, the proposed framework adopts a comparative decision strategy that uses two TCN models rather than a single model. During evaluation, an input sequence is simultaneously processed by both networks, and their reconstruction performance is assessed through the aforementioned error metrics. The framework determines which model better explains the observed signal: when the errors corresponding to the faulty-trained model are smaller than those of the normal-trained model, the input is classified as faulty; conversely, if the normal-trained model yields smaller errors, the input is identified as normal. This comparative approach removes the need for predefined thresholds and provides a more adaptive and robust mechanism for fault detection.
Unlike single-TCN approaches that rely on a fixed MSE threshold to discriminate between normal and abnormal conditions, the dual-model configuration enables a direct comparison between two learned behavioral spaces. This design inherently compensates for environmental variability, signal scaling, and sensor noise, thereby making the classification process more adaptive and data-driven. Furthermore, while a single model primarily learns nominal dynamics and flags large deviations as faults, the dual-TCN architecture explicitly captures the statistical and temporal characteristics of both healthy and faulty states. Consequently, it can detect subtle or early sensor-level deviations that may fall below fixed threshold limits, offering improved sensitivity, reduced false alarms, and enhanced robustness across diverse operational and fault scenarios.
For real-time deployment, the proposed fault detection mechanism is implemented on an FPGA, as illustrated in Figure 2. It integrates TruckSim as the vehicle dynamics simulator to provide wheel speed data under various faulty and normal driving scenarios. These sensor signals are transmitted in real time to the FPGA-based fault detection module.
As shown in the figure, the incoming wheel speed data from TruckSim are simultaneously applied to two TCN models deployed on the FPGA: the TCN-normal FPGA model and the TCN-faulty FPGA model. Each model predicts how the corresponding wheel speed sensor should behave—one based on learned normal dynamics and the other based on faulty behavior. The outputs of the two models, referred to as the normal predicted sensor and the faulty predicted sensor, are forwarded to the MSE and MAE calculation block. This block computes and compares the reconstruction errors of both predictions relative to the TruckSim reference signal.
The comparative error analysis enables the system to identify the model that better represents the observed sensor behavior. When the faulty model exhibits lower errors, the input is classified as faulty; otherwise, it is considered normal. The final classification result is generated by the fault detection block, completing the real-time early sensor-level fault detection.
Overall, the FPGA-based HIL framework operates as a low-latency, parallel inference system capable of evaluating wheel speed sensor health directly from TruckSim scenarios. By performing MSE and MAE comparison between two behavior-specific TCN models, the architecture achieves proactive and threshold-free fault detection for ABS applications.
The proposed FPGA-based fault detection mechanism is organized into three main components: data augmentation, dual-model feature learning, and FPGA-based classifier deployment, as illustrated in Figure 3.
In the first stage, data augmentation is performed through a co-simulation framework that integrates TruckSim with MATLAB/Simulink. Various driving conditions (including changes in vehicle speed, braking pressure, and steering angle) are simulated to generate comprehensive datasets for both normal and faulty ABS ECU operation. Normal datasets capture healthy wheel speed sensor behavior, while faulty datasets are created by introducing fault patterns into the sensor models. This approach ensures diverse and realistic training samples for both operational states.
In the second stage, dual-model feature learning is carried out using TCNs trained on a GPU. The augmented datasets are partitioned into training, validation, and testing subsets. Two independent TCNs are then trained: one exclusively on normal data and the other on faulty data. Each model learns the temporal dependencies and statistical signatures characteristic of its respective condition, establishing two distinct behavioral representations.
In the final stage, both trained TCN models are deployed on FPGA hardware for real-time inference and classification. The FPGA executes the models in parallel, processing live wheel speed signals and comparing the prediction errors (measured by the MSE and MAE) to determine the sensor’s health state. This real-time deployment enables proactive fault detection and low-latency fault response, enhancing the overall reliability and safety of the ABS.

4.1. Simulation Model

To train and evaluate the proposed framework, two comprehensive datasets (representing both normal and faulty operating conditions) were generated for ABS ECU fault detection. The integration of TruckSim with MATLAB/Simulink enables high-fidelity co-simulation of vehicle dynamics and fault scenarios by modifying input signals, parameters, and environmental conditions. Because the wheel speed sensor output depends directly on the vehicle’s longitudinal velocity, braking torque, and steering dynamics, faulty sensor behavior can be effectively emulated by altering these parameters in the simulation.
In this study, eight representative fault scenarios were systematically introduced in TruckSim by manipulating specific input parameters of TruckSim. These scenarios simulate realistic cases in which the ABS fails to operate correctly. The corresponding wheel speed sensor data were collected to form a diverse faulty dataset for model training and evaluation.
According to recent literature, faults in automotive ECUs are generally classified into hardware, software, and communication/network categories, depending on the affected subsystem [19]. The faults modeled in this work primarily correspond to hardware-type sensor faults, representing signal abnormalities that arise from degradation, calibration drift, or sensor malfunction.
A TruckSim Simulink model framework was developed to replicate the dynamic behavior of a heavy vehicle equipped with an ABS ECU. TruckSim provides a physics-based vehicle dynamics model, while Simulink handles signal generation, control logic, and fault injection using MATLAB function blocks. This combined setup allows realistic simulation of both nominal and faulty driving conditions, ensuring accurate and diverse data generation for the TCN-based fault detection model.
As shown in Figure 4, the left section of the model represents the input generation stage, where the steering angle, the braking torque, and the initial vehicle speed are defined using MATLAB function blocks and parameterized signal sources. These time-varying signals are transmitted to the TruckSim interface block to drive the vehicle model.
TruckSim then processes these control inputs to simulate realistic vehicle dynamics under varying operating conditions. The resulting outputs, such as vehicle speed, individual wheel speeds, yaw rate, and lateral acceleration, are fed back into Simulink for data logging, analysis, and fault evaluation. MATLAB functions thus serve as time-driven signal generators that map simulation time to dynamic driving behaviors, including steering oscillations, braking maneuvers, and velocity variations, ensuring diversity across all simulation runs.
The simulation utilizes two dedicated MATLAB function blocks that generate the steering wheel angle and brake pressure command as time-varying inputs to TruckSim. These signals define the driving maneuvers and braking behavior of the vehicle, enabling the analysis of ABS performance under diverse road conditions.
To simulate realistic driver behavior, steering and braking inputs are generated using random processes with truncated normal and uniform distributions. For example, the initial vehicle speed v t 0 is sampled as v t 0 N ( μ v = 0.67 , σ v 2 = 0 . 56 2 ) , truncated to [ 0.17 , 1 ] , to ensure that the sampled values correspond to the physical speed range of [ 20 , 120 ]  km/h while maintaining a realistic spread around the typical driving speed. The limits are derived from v max = 120 km / h , v min = 20 km / h , and v range = 100 km / h , resulting in:
μ v = v range / 2 + v min + 10 v max = 0.67 , σ v = v range 1.5 v max = 0.56 , [ v min / v max , 1 ] = [ 0.17 , 1 ] .
Similarly, the initial brake and steering commands are sampled as
b t 0 ( m / s 2 ) = 0 , p = 0.08 , N ( μ b = 0.14 , σ b 2 = 0 . 3 2 ) , p = 0.92 ,
δ t 0 ( ) = 0 , p = 0.1 , N 0 , ( δ max _ init / 1.5 ) 2 , p = 0.9 ,
where
δ max _ init = 1.5 ( 1.7 v t 0 v max + 260 ) 720 .
Here, v denotes the vehicle speed (normalized by v max , mapping [ 0.17 , 1 ] to [ 20 , 120 ]  km/h); b denotes the brake command (longitudinal deceleration, in  m / s 2 ); and δ denotes the steering angle (in degrees). N ( μ , σ 2 ) represents a normal distribution, and p indicates the sampling probability. Values drawn from N are truncated to the specified interval.
Normal behavior was obtained by simulating braking and steering events without any fault injection. The ABS ECU functioned correctly to prevent wheel lock while maintaining smooth deceleration. Figure 5 shows an example of normal braking behavior in TruckSim: the vehicle and wheel speeds decrease uniformly, while the ABS activation pattern remains stable and pulsed, indicating proper operation under nominal conditions.

4.2. Fault Scenario Modeling

To test the fault-detection capability of the proposed model, a range of fault scenarios was generated in the TruckSim–Simulink environment. These faults emulate actuator delays, sensor malfunctions, and abnormal driver inputs, which could degrade ABS performance or cause instability in the vehicle dynamics. Table 2 summarizes the eight fault scenarios considered, including the affected signals, fault types, and their high-level impact on the system.
To provide a more formal mathematical definition suitable for discrete-time simulation, each fault scenario was implemented with its corresponding signal-level formulation. Table 3 details these discrete-time equations, their physical interpretation, and their effects on vehicle dynamics. The initial condition values for speed, brake, and steering are generated probabilistically to ensure statistical variability across all simulated samples.
The signals are generated with a sampling frequency of 60 Hz ( Δ t = 0.0166 s ) resulting in 600 discrete time points, with the time index defined as n = 0 , 1 , 2 , , 599 .
Figure 6 illustrates eight representative faulty wheel speed sensor scenarios generated in the TruckSim–Simulink co-simulation environment. Each plot demonstrates a distinct anomaly in wheel speed dynamics resulting from faulty input behavior, such as irregular brake pressure, excessive steering angles, or throttle perturbations. These abnormal driving inputs force TruckSim to produce physically consistent yet faulty sensor responses that mimic real-world ABS malfunctions. The variation in wheel speed profiles across the eight scenarios highlights diverse fault characteristics as illustrated in Table 2. Such diversity ensures that the faulty dataset captures a comprehensive range of realistic failure modes for robust TCN model training and validation.
This fault modeling approach ensures consistency between the responses of the physical vehicles and their corresponding sensor outputs. Consequently, the co-simulation environment produces a rich dataset encompassing both normal and faulty operating conditions, which are subsequently utilized for TCN model training, validation, and FPGA-based fault detection mechanism implementation.

4.3. TCN Architecture and Dual Learning Framework

The classifier used conditional log-likelihood from sequences of input signals that are below a time-varying limit. When dealing with time-series data, networks must effectively capture and retain long-term dependencies. To achieve this, dilated convolutions is used, allowing the network to reach an exponentially large receptive field using only a limited number of layers [26].
In this context, dilation refers to the inserting of fixed gaps between the elements of the convolution kernel. By spacing these elements apart, the model captures both short- and long-range temporal patterns without a proportional increase in computational cost.
The architecture of a TCN is built upon stacked residual blocks. As illustrated in Figure 7, the input data sequentially passes through multiple Temporal Convolutional Modules (TCMs). Each TCM layer employs a dilated causal convolution, ensuring that the outputs depend only on the past and present inputs. The dilation factor increases exponentially with network depth (e.g., 1, 2, 4), which rapidly expands the receptive field and enables the network to model long-range dependencies. Within each module, the core operations typically include a dilated causal convolution, followed by Weight Normalization, a ReLU activation function, and a 1 × 1 convolution. This configuration allows the TCN to efficiently process sequential data while maintaining temporal causality.
The receptive field R of a TCN defines the number of input time steps that influence a single output value and is expressed as:
R = 1 + l = 1 L k ( l ) 1 · d ( l )
where:
  • L: number of TCN layers;
  • k ( l ) : kernel size at layer l;
  • d ( l ) : dilation factor at layer l.
For the TCN configuration used in this study (Figure 7), the model was designed to capture multi-scale temporal dependencies essential for accurate wheel speed prediction. A kernel size of k = 3 and L = 3 layers were used, with dilation factors of 1, 2, and 4, respectively. This structure provides a receptive field sufficient to model both immediate and delayed temporal relationships. The model was trained for 140 epochs using the Adam optimizer for efficient convergence.
Unlike conventional recurrent architectures, a TCN ensures strict causality, which means that each prediction depends only on past and present inputs, preventing information leakage from future data. Furthermore, TCNs can map variable-length input sequences to equal-length output sequences, making them particularly suitable for time-series modeling [27].
A TCN predicts the next l values in a given time series. For an input sequence x 0 , x 1 , , x L , the model produces a corresponding output sequence y 0 , y 1 , , y L , where each y t represents the input shifted forward by l time steps. At any time step t, the model can only utilize the inputs x 0 , x 1 , , x t to predict y t , thus maintaining temporal consistency.
In this work, the proposed dual-learning TCN framework operates under two complementary inference modes: open-loop and closed-loop. During initialization, the model functions in open-loop mode, where the first 40 input samples (referred to as the seed sequence) are directly fed from the sensor dataset. Once the initial states are established, the system transitions to closed-loop operation, in which subsequent predictions are generated autonomously based on previously predicted outputs rather than new sensor inputs.
This closed-loop configuration allows the model to emulate the temporal evolution of the wheel speed sensor behavior in real time, enabling accurate prediction and fault detection even in the absence of live input data. The choice of a 40-sample seed window was determined through analysis of both the temporal characteristics of the wheel speed signal and the receptive field of the TCN architecture. At a sampling rate of 60 Hz, this corresponds to approximately 0.67 s of sensor data, which encompasses a complete braking transient and provides sufficient temporal context for stable state initialization.
Moreover, since the TCN receptive field is 15 samples for the selected kernel and dilation parameters (as derived from the receptive field Equation (1) with L = 3 convolutional layers and dilation factors d = [ 1 , 2 , 4 ] ), using a 40-sample seed approximately three times larger than the receptive field ensures complete coverage of short- and mid-term temporal dependencies while maintaining low latency and efficient FPGA resource utilization.
The performance of the proposed TCN model is primarily evaluated using two error metrics, the MSE and the MAE. The MSE measures the average squared difference between the predicted outputs of the model and the actual sensor values, while the MAE quantifies the average absolute difference between them.
A lower MSE or MAE indicates a closer match between the predicted and actual sensor readings, reflecting the model’s ability to accurately capture the temporal dynamics of the system. Minimizing this metric during training ensures that the model effectively learns the underlying temporal correlations and reproduces realistic sensor behavior.
Based on this architecture, a dual-learning model was developed based on two independently trained TCNs, one modeling the behavior of the normal wheel speed sensor and the other modeling faulty behavior. The normal model was trained exclusively on datasets representing normal sensor operation, while the faulty model was trained on 5000 samples representing eight different fault conditions (Table 4). Each model learned its respective temporal dynamics from its dedicated dataset, forming the foundation of the dual-inference fault detection mechanism.
For this framework, the dataset was divided into two main classes: normal and faulty behavior. Each class was subdivided into training, validation, and test subsets. To make certain, all data were normalized by the MinMaxScaler from the scikit-learn library [28], which scales values within the range [ 0 , 1 ] :
Z i = x i min ( x ) max ( x ) min ( x )
where Z i is the normalized value and x i represents an individual data point from the original dataset.
The training subsets were used to fit each TCN model to its respective data type, while the validation subsets supported hyperparameter tuning and overfitting prevention. Finally, the test subsets were used to assess the generalization performance of both models, allowing the framework to classify incoming wheel speed sensor data as normal or faulty based on temporal pattern matching and reconstruction errors.
The datasets used to train both models were generated in a TruckSim–Simulink co-simulation environment, where abnormal driving behaviors were intentionally induced by forcing TruckSim to operate under abnormal input conditions. These included modified control commands such as abnormal brake pressure profiles, irregular steering angles, and vehicle speed. Through the manipulation of these input signals, the simulated truck was driven to dynamic conditions that emulate sensor anomalies.
Table 5 summarizes the TruckSim parameters used to generate normal and faulty datasets. These parameters were selected to capture the comprehensive dynamics of the vehicle under varying conditions. The input variables (e.g., brake pressure command, steering wheel angle, throttle position, and ABS control states) act as control signals that influence vehicle dynamics, while the output variables (e.g., longitudinal speed, yaw rate, lateral acceleration, and individual wheel speeds) represent the measurable system responses that the TCN models are trained to predict.

4.4. Fault Detection Stage

In this stage, each incoming wheel speed signal is simultaneously fed to both TCN models. The normal TCN attempts to reconstruct the expected sensor signal under nominal operating conditions, whereas the faulty TCN predicts the corresponding behavior under fault-induced conditions.
For each model, the reconstruction errors are computed using both the MSE and the MAE:
MSE normal = 1 n i = 1 n ( y i y ^ i , normal ) 2 , MSE faulty = 1 n i = 1 n ( y i y ^ i , faulty ) 2
MAE normal = 1 n i = 1 n | y i y ^ i , normal | , MAE faulty = 1 n i = 1 n | y i y ^ i , faulty |
where y i denotes the measured wheel speed at time step i, and y ^ i , normal and y ^ i , faulty are the predictions from the normal and faulty TCN models, respectively.
Both MSE and MAE have probabilistic interpretations. Minimizing MSE corresponds to maximizing the likelihood under Gaussian noise:
L MSE i = 1 n log e ( y i y ^ i ) 2 2 σ 2 ,
while minimizing MAE corresponds to maximizing the likelihood under Laplacian noise:
L MAE i = 1 n log e | y i y ^ i | b .
Reporting MSE and MAE separately provides complementary information: MSE emphasizes large deviations critical for detecting abrupt faults, whereas MAE captures consistent small errors and noise-driven variations.
The final classification decision is made by comparing the two models independently on both metrics:
Decision = Normal behavior , if MSE normal < MSE faulty and MAE normal < MAE faulty , Faulty behavior , otherwise .
This dual-metric strategy leverages the complementary strengths of both error measures and model types to accurately distinguish normal and faulty temporal patterns. When implemented on FPGA, it enables real-time, low-latency fault detection and correction, forming the foundation for hardware-accelerated ABS ECU validation and diagnostic testing.

4.5. FPGA-Based Prediction Module

FPGAs offer a reconfigurable and parallel processing environment well-suited for real-time control and HIL simulations. Their ability to execute concurrent operations enables the implementation of complex neural network architectures such as TCNs for rapid signal analysis, fault recognition, and closed-loop system validation.
In the proposed system, the FPGA acts as an intelligent module for real-time fault early sensor-level detection in the HIL simulation platform for ABS systems. It performs real-time data monitoring, prediction, and fault classification within the HIL loop. The FPGA implementation, shown in Figure 8, is composed of four principal subsystems: the TCN prediction model module and the Fault detection module.

TCN Prediction Model

A key step in the hardware implementation involves mapping the trained parameters of both the normal and faulty TCN models onto the FPGA’s on-chip memory resources. The pre-trained weights and biases obtained from Python-based GPU training are quantized into a fixed-point Q1.15 format and exported as Coefficient (.coe)  files. These files are used to initialize the FPGA’s embedded Block RAMs (BRAMs) during bitstream generation, ensuring that model parameters are directly accessible from dedicated on-chip memory. This approach eliminates the latency associated with external memory access and enables parallel weight retrieval during convolution operations.
The TCN dual-weight model manager organizes and controls two independent BRAM blocks that store the pre-trained parameters of the normal and faulty TCN models, respectively. A multiplexer (MUX) dynamically selects the active weight bank according to the operational mode or testing scenario defined by the TruckSim scenario manager. This architecture allows seamless, real-time switching between normal and faulty model evaluations within the FPGA fabric, without requiring hardware reconfiguration or interrupting the HIL simulation.
The TruckSim scenario manager dynamically selects either normal or faulty vehicle dynamics scenarios from TruckSim CSV file based on the input and output parameters summarized in Table 5. These scenarios represent diverse braking conditions and sensor degradation profiles, ensuring a comprehensive range of test environments.
In the closed-loop configuration, the TruckSim scenario manager streams real-time wheel speed data to the FPGA-based TCN prediction module through a dedicated input channel. During the first 40 sampling intervals, the model operates in open-loop mode to initialize its internal temporal states and synchronize with the vehicle’s dynamics.
After this warm-up phase, the system transitions to closed-loop prediction, where the TCN’s previously predicted outputs are used as inputs for subsequent time steps to predict the next-step outputs. This feedback strategy enhances prediction stability and accuracy under transient conditions and sensor faults, enabling reliable real-time estimation of wheel speed behavior under both normal and faulty scenarios.
The TCN finite-state machine (FSM) orchestrates the overall data flow and synchronization among the convolution, activation, and accumulation stages for both models, ensuring deterministic timing and proper sequencing of input loading, weight access, and output generation for real-time inference on the FPGA. The controller is implemented as a synchronous Moore FSM with 17 states, driven by eight logical inputs (network_input_tvalid, fc_conv_result_tvalid, relu_result_tvalid, addition_result_tvalid, load_causal_activations, and resetn) and generating twelve registered outputs (handshake, layer-activation, block-selection, and output-valid/data signals). This Moore-style implementation was chosen because all control signals depend only on the current state, which avoids combinational glitches, simplifies timing closure, and guarantees deterministic cycle-by-cycle behavior.
The TCN layer comprises three computational blocks: a convolution layer for temporal feature extraction, a ReLU layer for non-linear activation, and an addition layer for residual accumulation. The convolution layer is implemented using a dedicated multiply–accumulate (MAC) unit, which performs temporal convolutions across input sequences to capture dynamic dependencies in the wheel speed signals. Under FSM supervision, the MAC unit executes pipelined and parallel computations with minimal latency.
As one of the most resource-intensive modules in neural network accelerators, the MAC unit performs numerous multiply-and-add operations across neurons and layers, consuming significant FPGA resources such as DSP slices, LUTs, and flip-flops. Efficient design and optimization of the MAC are therefore critical to balancing computational precision, throughput, and resource utilization.
To address these challenges, an optimized fixed-point MAC (OFM) architecture is adopted in this work to enhance performance while minimizing FPGA resource consumption [29]. The OFM unit, illustrated in Figure 8, consists of two main pipeline stages: a multiplication stage and an accumulation stage. Both stages operate on operands represented in the Q1.15 fixed-point format, where one bit is allocated for the integer part and fifteen bits for the fractional part. This representation provides a good balance between numerical precision and hardware efficiency, making it well-suited for real-time ABS sensor signal prediction and HIL-based testing applications.
The outputs from the TCN prediction models are routed to the MSE calculation module, which differentiates between the results generated by the normal and faulty models and computes the MSE for each output parameter according to Table 5 for both normal and faulty models.
Utilizing Equation (14) together with the calculated MSE and MAE metrics, the early sensor-level fault detection module identifies abnormal sensor behavior and triggers alerts to prevent corrupted data from being transmitted to the ECU.
The combination of FSM-based control, dual-weight management, optimized MAC computation, and fault detection logic ensures deterministic timing, low latency, and scalability for multi-sensor configurations. These characteristics make the proposed design particularly suitable for real-time wheel speed sensor fault detection in safety-critical ABS applications.

5. Experimental Setup

This section describes the HIL test platform developed to evaluate the Bendix EC-60 ABS ECU under both normal and faulty wheel-speed sensor conditions. As illustrated in Figure 9, the platform integrates the FPGA-based fault-detection mechanism shown in Figure 2 as a core component within a real-time simulation and data-acquisition framework. The objective of the HIL setup is twofold: (i) to verify that the ECU correctly detects and reacts to abnormal sensor behavior injected by the TCN-based virtual sensor and (ii) to confirm that, under non-faulty conditions, the Bendix EC-60 operates correctly without spurious fault activation.
The HIL platform is composed of four major hardware subsystems that form a closed-loop testing environment, corresponding to the blocks shown in Figure 9:
  • FPGA fault-detection module: hosts the fixed-point implementation of the TCN model for real-time sensor data processing and fault detection. Wheel speed time series generated by the Trucksim simulator are buffered in the BRAM on programmable logic (PL) of ZCU102 board. The PL then processes these samples with the TCN, and the resulting predicted wheel speed values and fault flags are passed back through AXI-Stream FIFOs between the PL and PS before being transferred to the simulator over USB 3.0 for further use in the HIL loop.
  • Signal-generation module: converts the FPGA’s digital predicted wheel speed sensors into analog wheel speed sensor signals for the ECU.
  • Signal-acquisition module: uses A/D convertors on the same backplane, wired to the ECU outputs such as Pressure Modulating Valves (PMVs), Traction Control Valves (TCVs), and status lines. These channels continuously record the ECU’s reaction to the injected wheel speed profiles and faults and stream the data back to the host PC for logging and offline analysis.
  • Communication interface module: manages J1939/CAN bus data exchange between the ECU and the host system.
All modules are interconnected via the simulator’s custom-designed backplane, which integrates analog and digital I/O, the CAN interface, and the required power rails. The backplane provides a single, high-bandwidth USB 3.0 connection to the FPGA prediction module and ensures deterministic timing between signal generation, acquisition, and TCN inference, thereby guaranteeing synchronous operation of the HIL loop.

5.1. FPGA Interface and Integration

The core of the prediction module is a Xilinx ZCU102 evaluation board integrating a Zynq UltraScale+ MPSoC, chosen for its tightly coupled PS and PL. The architecture is shown in Figure 8. The PL executes the low-latency, parallel computations of the TCN model (convolutions and residual blocks), while the PS, equipped with ARM cores, manages high-level control, buffer management, and communication with the HIL simulator.
A key aspect of the design is the robust communication interface bridging the HIL simulator and the FPGA. The Vitis project employs a Communications Device Class (CDC) USB 3.0 interface, enabling the FPGA to appear as a virtual COM port on the host PC. This high-bandwidth link is used exclusively for real-time sensor and actuator data transfer. On the FPGA side, AXI-Stream FIFO interfaces bridge the PS and PL, decoupling the TCN computation from USB transfer latency and enabling continuous streaming of wheel-speed samples through the TCN pipeline.
During operation, wheel-speed sequences generated by the TruckSim-based simulator are sent to the FPGA via USB 3.0. The PL processes these sequences with the TCN and returns predicted wheel-speed values and corresponding fault indicators to the PS, which forwards them back to the simulator. The signal-generation module then converts these predictions into analog wheel-speed signals, which are applied to the EC-60 ECU. The ECU executes its ABS control logic based on these signals, modulating PMVs and TCVs accordingly. The acquisition module records the ECU responses and forwards them to the host system for further analysis, closing the validation loop over a wide range of nominal and faulty scenarios.

5.2. ECU Signal Configuration

The interface between the HIL platform and the Bendix EC-60 ECU is defined by the input and output signals listed in Table 6. While a commercial truck may include up to ten wheel speed sensors, the EC-60 ECU simplifies this by using six—one per side on the steering and drive axles—ensuring full axle-end coverage without redundancy. The outputs consist of corresponding PMVs and TCVs that regulate braking pressure and traction control at each wheel end.

6. Results and Discussion

To evaluate the proposed system, we verified that the dual-learning model effectively distinguishes between normal and faulty wheel speed sensor behaviors. The underlying principle is that each TCN model should achieve the lowest prediction error on the type of data it was trained on. Consequently, for normal sensor data, the normal-behavior TCN is expected to produce a lower prediction error than the faulty-behavior TCN, and vice versa. This comparative evaluation enhances both the robustness and precision of the fault detection framework.
Formally, let MSE normal and MSE faulty denote the Mean Squared Errors obtained from the normal and faulty TCN models, respectively. Similarly, let MAE normal and MAE faulty represent the corresponding Mean Absolute Errors. The individual decision metrics are first evaluated for each model to quantify the reconstruction quality of the input sequence.
Since the MSE metric is highly sensitive to large deviations, it is particularly effective for identifying abrupt or severe anomalies in wheel speed sensor signals. In contrast, the MAE metric provides a more uniform weighting of all errors, offering robustness against isolated outliers or transient disturbances. By jointly analyzing both metrics, the framework leverages the complementary characteristics of MSE and MAE to improve overall fault discrimination accuracy.
The final classification decision is made by comparing the error magnitudes from both TCN models, as given in Equation (14).
In practice, the joint MSE–MAE evaluation enhances decision reliability by reducing sensitivity to noise and preventing false detections caused by short-term fluctuations. During real-time FPGA deployment, this rule enables the early sensor-level fault detection module to dynamically select the most representative model (normal or faulty) based on the reconstruction consistency of incoming wheel speed signals. Consequently, the system achieves robust and adaptive fault classification across diverse driving and fault conditions.

6.1. Evaluation Based on Classification Metrics

In addition to the error-based decision rules, the classification performance of the proposed fault detection framework was evaluated using standard metrics derived from the confusion matrix, as summarized in Table 7. A classification outcome is defined as follows:
  • True Positive (TP): Faulty input correctly identified as faulty.
  • True Negative (TN): Normal input correctly identified as normal.
  • False Positive (FP): Normal input incorrectly classified as faulty.
  • False Negative (FN): Faulty input that is not detected.
The performance of the fault detection model was evaluated by increasing size of datasets, each model containing an equal number of normal and faulty samples to ensure class balance. A 70%/20%/10% split was applied for training, validation, and testing, respectively, resulting in approximately 500 normal and 500 faulty samples in the test set for the 5000-sample configuration.
The results, summarized in Table 8, show that increasing the dataset size improves the model’s overall performance across all metrics. Performance peaks at the 5000-sample dataset, achieving an accuracy of 0.912 and an F1-score of 0.914. Expanding the dataset further to 7000 samples results in a marginal performance decrease (F1-score of 0.901), indicating that the model converges and additional data provide diminishing returns.
These classification metrics complement the error-based measures (MSE and MAE). While error metrics quantify the magnitude of prediction deviations, precision, recall, and F1-score assess the system’s classification effectiveness. Together, they provide a comprehensive evaluation of the dual-learning fault detection framework under various dataset scales and driving conditions.

6.2. Comparative Analysis: Dual-TCN vs. Single-TCN Framework

To provide an initial comparison, a single-TCN model was implemented using only the normal behavior scenarios. In this configuration, the model predicts the expected wheel speed sequence and computes the MSE between the predicted and measured signals. A fault is detected when the prediction error exceeds a predefined MSE threshold.
To determine the fault detection threshold for the single-TCN model, the MSE distribution of the validation dataset was analyzed using samples from the 5000-sample configuration, which included both normal and faulty data sequences. The validation subset consisted exclusively of normal samples (approximately 500) to ensure that the threshold reflected the expected variability of prediction errors under healthy sensor conditions. The mean ( μ val ) and standard deviation ( σ val ) of the MSE values were computed from these normal samples, and the threshold was defined according to the well-established k-sigma method [31,32]:
Threshold MSE = μ val + k · σ val ,
where k is a positive sensitivity factor chosen empirically, μ val represents the expected prediction error for normal sensor behavior, and σ val quantifies its variation across different driving conditions.
The k-sigma method is a widely used and straightforward statistical approach for threshold selection. In this study, empirical analysis showed that k = 2.5 provided an effective trade-off between sensitivity and stability.
Using the test scenarios from the normal model ( μ val = 0.00597 ) and the estimated standard deviation ( σ val 0.0035 ), the resulting threshold was computed as:
Threshold MSE = 0.00597 + 2.5 × 0.0035 = 0.0147 .
Consequently, any wheel speed signal producing an MSE above 0.0147 was statistically classified as faulty. If the instantaneous MSE exceeded this limit over a consecutive window of samples, the system flagged the sensor as faulty; otherwise, it was considered normal.
For comparative evaluation, both the single-TCN and the proposed dual-TCN frameworks were tested under identical conditions. Each model was evaluated using 1000 test samples (500 normal and 500 faulty) derived from the 5000-sample dataset to ensure a fair and balanced comparison. Detection performance was quantified using metrics such as accuracy, precision, recall, and F1-score.
The results in Table 9 clearly demonstrate that the dual-TCN framework outperforms the single-TCN approach across all evaluation metrics. While the single-TCN relies on a fixed MSE threshold, the dual-TCN leverages a comparative learning strategy between the normal and faulty networks, enabling adaptive and threshold-free classification.

6.3. Case Studies

To further demonstrate the comparative mechanism of the dual model, we present two case studies from TruckSim simulation scenarios: one under normal conditions and another with a simulated fault.

6.3.1. Case Study 1 (Normal Scenario)

Figure 10 illustrates the model performance under normal driving conditions. In this scenario, normal sensor data were applied to both the normal-behavior model and the faulty-behavior model. As shown in Figure 10b, the predictions generated by the normal model closely follow the target signals across all two variables (roll angle, and wheel speed), indicating a tight alignment and low prediction error. In contrast, the faulty-behavior model in Figure 10a shows noticeable deviations between the predicted and actual signals, particularly during later time intervals, reflecting larger and more variable errors.
The comparison in Figure 10c quantitatively supports this observation. Both the normalized MSE and MAE are significantly lower for the normal model compared to the faulty model. This confirms that the framework correctly recognizes normal operating conditions by assigning smaller and more consistent errors to the appropriate model, while the faulty model exhibits a broader spread of errors due to its inability to capture the normal behavior pattern.

6.3.2. Case Study 2 (Faulty Scenario)

Figure 11 presents the model performance when faulty sensor data were applied to both TCN models. As illustrated in Figure 11a, the faulty behavior model shows strong predictive accuracy, with predicted signals closely matching the actual target values across all measured parameters. In contrast, the normal behavior model shows a clear mismatch between predicted and target signals, especially during dynamic transitions, indicating that it fails to represent the fault pattern accurately.
The quantitative results in Figure 11c reinforce this finding. The faulty behavior model achieves substantially lower normalized MSE and MAE values, while the normal model yields higher and more dispersed errors, reflecting its inability to adapt to abnormal behavior. This reversal of results, compared with the normal scenario, validates the framework’s capability to effectively discriminate between healthy and faulty conditions by assigning lower errors to the corresponding model.
To evaluate the hardware feasibility of the proposed dual-TCN fault detection framework, the design was synthesized and implemented on an FPGA platform. Resource utilization was analyzed to assess computational and memory efficiency during real-time execution.
The synthesis results summarized in Table 10 show that the proposed dual-TCN architecture occupies 12.7% of LUTs, 20.1% of FFs, 19.1% of BRAMs, and 5.1% of DSP slices, with negligible LUTRAM (0.01%) and BUFG (0.25%) usage. This relatively low utilization is important for several reasons, even though the full FPGA device is already present on the PCB.
First, it demonstrates that the proposed architecture is computationally efficient and does not require a high-end device: the same design could be migrated to a smaller and less expensive FPGA or integrated alongside additional logic on the same SoC, which is relevant for industrial deployment and cost optimization. Second, the available resource headroom provides a clear path for scalability. In future work, we plan to extend the platform beyond ABS to include additional ECU fault-detection modules (e.g., steering, transmission, or powertrain). The current FPGA leaves sufficient LUT, BRAM, and DSP capacity to instantiate further TCN-based monitors or higher-capacity models without redesigning the hardware platform.
Third, although the static power is dominated by the device itself, keeping the design compact reduces dynamic power by limiting the number of actively switching LUTs, FFs, BRAMs, and DSPs, which is beneficial when the FPGA also hosts other time-critical tasks. Overall, Table 10 does not simply show that resources are “unused”, but rather that the proposed dual-TCN implementation achieves real-time performance with a modest hardware footprint, leaving ample margin for future extensions, additional ECU monitoring blocks, and integration into cost- and power-constrained automotive platforms.
From a timing perspective, the dual-TCN block operates as a supervisory monitor running in parallel with the ABS ECU. The ECU preserves its original control period of 16.7 microsecond (60 Hz), while the TCN accelerator on the FPGA processes the same wheel-speed measurements and produces a fault/normal decision without altering the ECU’s actuation schedule. Owing to the fully pipelined hardware implementation, the end-to-end latency from input-window arrival to fault decision is on the order of only a few tens of microseconds (i.e., well below 1% of ABS control cycle). As a result, the additional monitoring introduces only minimal latency and has no practical impact on the timing or stability of the ABS control loop, while still enabling real-time sensor health assessment.

6.4. Bendix EC60 Results Under Normal and Faulty Wheel Speed Sensor Conditions

Figure 12 illustrates the feedback obtained from the Bendix EC-60 ABS ECU under normal and faulty wheel speed sensor conditions. In the normal scenario, the wheel speed signal demonstrates smooth and consistent behavior, closely following the expected rotational dynamics of the wheel. This indicates that the sensor is functioning correctly, providing reliable input to the ABS ECU for effective braking control. Under these conditions, the hold signal engages the brake pressure when wheel slip exceeds the ABS threshold. The release signal reduces brake pressure when the wheel regains traction. Because the wheel speed sensor provides accurate feedback, these signals are properly timed, ensuring smooth braking and preventing wheel lock-up.
Conversely, the faulty scenario exhibits noticeable deviations from the expected wheel speed profile. The signal may show abrupt fluctuations, drops, or spikes, which can lead to incorrect ABS responses if left uncorrected. In this case, the hold signal may engage too early or too late, causing unnecessary or insufficient brake pressure. The release signal may fail to reduce brake pressure on time, increasing the risk of wheel lock-up. Comparing these two figures highlights the impact of sensor faults on system behavior, emphasizing the importance of early fault detection.

6.5. Summary of Experimental Findings

The experimental results collectively demonstrate the effectiveness and practicality of the proposed dual-TCN framework for early sensor-level fault detection in ABS systems. First, the analysis of different dataset sizes (Table 8) shows that increasing the number of simulated sequences from 2000 to 5000 samples steadily improves all classification metrics. The best trade-off is obtained with the 5000-sample configuration, which achieves an accuracy of 0.912, a precision of 0.894, a recall of 0.934, and an F1-score of 0.914 on a balanced test set. Beyond this point (7000 samples), the performance gains become marginal, indicating that the proposed training pipeline reaches a stable generalization regime.
Second, the comparative study between the single-TCN and dual-TCN configurations (Table 9) highlights the benefit of explicitly learning both normal and faulty behaviors. Whereas the single-TCN model, relying on a fixed MSE threshold, achieves a detection accuracy of 91.4% and an F1-score of 88.9%, the proposed dual-TCN scheme reaches 97.8% accuracy, 96.5% precision, 98.2% recall, and a 97.3% F1-score under the same test conditions. This corresponds to an improvement of 6.4 percentage points in accuracy and 8.4 percentage points in F1-score, confirming that the dual-learning strategy significantly enhances fault discrimination capability.
Third, the case studies based on TruckSim scenarios (Figure 10 and Figure 11) and the Bendix EC-60 HIL experiments (Figure 12) demonstrate that these quantitative gains translate into meaningful behavior at system level. Under normal conditions, the normal-TCN model yields consistently lower MSE and MAE values than the faulty model, while under faulty conditions the situation is reversed. In the HIL tests with the EC-60 ECU, the framework correctly differentiates healthy and faulty wheel speed sensor behaviors and reflects these differences in the ECU’s PMV/TCV actuation patterns.
Finally, the FPGA implementation results (Table 10) confirm that the dual-TCN architecture can be deployed in real time with modest hardware overhead. The design uses only 12.7% of LUTs, 20.1% of flip-flops, 19.1% of BRAMs, and 5.1% of DSPs on a Xilinx ZCU102 device, while supporting streaming operation at 60 Hz within the HIL loop. This demonstrates that the proposed method is not only accurate in terms of machine learning metrics, but also feasible for embedded implementation in safety-critical automotive platforms.
Overall, the experimental findings show that the proposed dual-TCN framework delivers high detection performance, robustness across diverse fault scenarios, and efficient FPGA-based real-time execution, thereby providing a significant and practical contribution to ABS sensor fault diagnosis and ECU validation.
Beyond these results, it is important to note that, while the proposed dual-TCN framework demonstrates robustness to short-term environmental variations (e.g., loading, road surface), long-term physical changes such as tire wear or suspension degradation could, in principle, induce concept drift over multi-year operational lifetimes. This challenge is common to all data-driven automotive systems and can be addressed through periodic model retraining using updated simulation parameters, followed by FPGA bitstream updates during scheduled maintenance. Because trainings are architecturally decoupled, such updates preserve the real-time properties of the monitoring system.

7. Conclusions

This study presented a dual learning approach for intelligent early sensor-level fault detection of ABS systems. By integrating a dual-TCN model within an FPGA-based HIL simulation platform, the proposed method accurately distinguishes between normal and faulty sensor behaviors under diverse driving scenarios. Using realistic datasets generated from a TruckSim–MATLAB/Simulink co-simulation, including eight representative fault scenarios and up to 5000 labeled sequences, the framework overcomes the common limitation of scarce and non-representative faulty data.
Experimental results show that, on a balanced test set of 1000 sequences, the proposed dual-TCN framework achieves a detection accuracy of 97.8%, a precision of 96.5%, a recall of 98.2%, and an F1-score of 97.3%. In comparison, a single-TCN baseline reaches 91.4% accuracy and an 88.9% F1-score, confirming that the dual-learning strategy provides a significant improvement in fault classification performance. The complete dual-TCN architecture is implemented on a Xilinx ZCU102 FPGA, requiring only 12.7% of LUTs, 20.1% of flip-flops, 19.1% of BRAMs, and 5.1% of DSPs, while supporting real-time inference in the HIL loop with low latency.
Moreover, the FPGA-resident dual-TCN monitor introduces only negligible additional latency relative to the ABS control period, ensuring that real-time braking performance is not affected.
While the framework targets HIL-based ECU validation—where wheel-speed signals are generated virtually—its design principles address practical deployment considerations. In a physical vehicle, the dual-TCN monitor operates on the existing sensor set, learning subtle temporal anomalies without the cost, complexity, and wiring overhead of additional hardware redundancy. This makes the solution a scalable and cost-effective alternative to pure sensor duplication, with the added benefit of being reusable across multiple ECUs and vehicle subsystems.
Although this work focuses on ABS wheel-speed sensors, the same dual-TCN and FPGA-based HIL pipeline can be reused for other safety-critical ECUs by adjusting the input signals and retraining the models, making the proposed framework a generic and extensible solution for real-time fault detection in embedded automotive systems.
In summary, this work demonstrates that combining data-driven learning with hardware acceleration provides a practical, scalable solution for intelligent automotive fault detection, essential for next-generation software-defined vehicles.

Author Contributions

Conceptualization, P.F. and A.M.; methodology, F.K.; software, F.K.; validation, F.K., P.F. and A.M.; formal analysis, F.K.; investigation, F.K.; resources, P.F. and A.M.; data curation, F.K.; writing—original draft preparation, F.K.; writing—review and editing, P.F. and A.M.; visualization, F.K.; supervision, P.F. and A.M.; project administration, P.F. and A.M.; funding acquisition, P.F. and A.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Sciences and Engineering Research Council of Canada (NSERC).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The simulation datasets generated and analyzed during this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Bello, L.L.; Mariani, R.; Mubeen, S.; Saponara, S. Recent advances and trends in on-board embedded and networked automotive systems. IEEE Trans. Ind. Inform. 2018, 15, 1038–1051. [Google Scholar] [CrossRef] [Scilit]
  2. Zahedi, E.; Gharaveisi, A.A. Fault detection and isolation of anti-lock braking system sensors. In Proceedings of the 2nd International Conference on Control, Instrumentation and Automation (ICCIA), Shiraz, Iran, 27–29 December 2011; IEEE: Piscataway, NJ, USA, 2011. [Google Scholar]
  3. Theissler, A.; Dear, I. An anomaly detection approach to detect unexpected faults in recordings from test drives. In Proceedings of the WASET International Conference on Vehicular Electronics and Safety, Stockholm, Sweden, 15–16 July 2013; Volume 7. [Google Scholar]
  4. Theissler, A.; Pérez-Velázquez, J.; Kettelgerdes, M.; Elger, G. Predictive maintenance enabled by machine learning: Use cases and challenges in the automotive industry. Reliab. Eng. Syst. Saf. 2021, 215, 107864. [Google Scholar] [CrossRef] [Scilit]
  5. Sievers, G.; Seiger, C.; Peperhowe, M.; Krumm, H.; Graf, S.; Hanselmann, H. Driving simulation technologies for sensor simulation in SIL and HIL environments. In Proceedings of the Driving Simulation Conference (DSC), Antibes, France, 5–7 September 2018; pp. 127–130. [Google Scholar]
  6. Zhou, J.; Schmied, R.; Sandalek, A.; Kokal, H.; Del Re, L. A framework for virtual testing of ADAS. SAE Int. J. Passeng. Cars Electron. Electr. Syst. 2016, 9, 66–73. [Google Scholar] [CrossRef] [Scilit]
  7. Bai, S.; Kolter, J.Z.; Koltun, V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar] [CrossRef] [Scilit]
  8. Guo, K.; Zeng, S.; Yu, J.; Wang, Y.; Yang, H. A survey of FPGA-based neural network inference accelerator. ACM Trans. Reconfig. Technol. Syst. 2019, 12, 1–26. [Google Scholar] [CrossRef] [Scilit]
  9. Poon, J.J.; Kinsy, M.A.; Pallo, N.A.; Devadas, S.; Celanovic, I.L. Hardware-in-the-loop testing for electric vehicle drive applications. In Proceedings of the 2012 Twenty-Seventh Annual IEEE Applied Power Electronics Conference and Exposition (APEC), Orlando, FL, USA, 5–9 February 2012; pp. 2576–2582. [Google Scholar]
  10. Abboush, M.; Bamal, D.; Knieke, C.; Rausch, A. Hardware-in-the-loop-based real-time fault injection framework for dynamic behavior analysis of automotive software systems. Sensors 2022, 22, 1360. [Google Scholar] [CrossRef] [Scilit]
  11. Pan, Y.; Nie, X.; Li, Z. Data-driven vehicle modeling of longitudinal dynamics based on a multibody model and deep neural networks. Meccanica 2021, 56, 1045–1060. [Google Scholar] [CrossRef] [Scilit]
  12. Chen, Q.; Tian, W.; Chen, W.; Ahmed, Q.; Wu, Y. Model-based fault diagnosis of an anti-lock braking system. Sensors 2018, 18, 4468. [Google Scholar] [CrossRef] [Scilit]
  13. Abboush, M.; Knieke, C.; Rausch, A. Representative real-time dataset generation based on automated fault injection and HIL simulation for ML-assisted validation of automotive software systems. Electronics 2024, 13, 437. [Google Scholar] [CrossRef] [Scilit]
  14. Zhang, T.; Chen, J.; Li, F.; Zhang, K.; Lv, H.; He, S.; Xu, E. Intelligent fault diagnosis of machines with small and imbalanced data: A state-of-the-art review and possible extensions. ISA Trans. 2022, 119, 152–171. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Zhang, F.; Saeed, N.; Sadeghian, P. Deep learning in fault detection and diagnosis of building HVAC systems: A systematic review with meta-analysis. Energy AI 2023, 12, 100235. [Google Scholar] [CrossRef] [Scilit]
  16. Qiu, S.; Cui, X.; Ping, Z.; Shan, N.; Li, Z.; Bao, X.; Xu, X. Deep learning techniques in intelligent fault diagnosis and prognosis for industrial systems: A review. Sensors 2023, 23, 1305. [Google Scholar] [CrossRef] [Scilit]
  17. Lee, S.; Jin, H.; Nengroo, S.H.; Doh, Y.; Lee, C.; Heo, T.; Har, D. Smart metering system capable of anomaly detection by bi-directional LSTM autoencoder. arXiv 2021, arXiv:2112.03275. [Google Scholar] [CrossRef] [Scilit]
  18. Gong, D.; Liu, L.; Le, V.; Saha, B.; Mansour, M.R.; Venkatesh, S.; Hengel, A.V.D. Memorizing normality to detect anomaly: Memory-augmented deep autoencoder for unsupervised anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea, 27 October–2 November 2019; pp. 1705–1714. [Google Scholar]
  19. Abboush, M.; Bamal, D.; Knieke, C.; Rausch, A. Intelligent fault detection and classification based on hybrid deep learning methods for hardware-in-the-loop test of automotive software systems. Sensors 2022, 22, 4066. [Google Scholar] [CrossRef] [Scilit]
  20. Fang, J.; Li, S.; Wu, Y.; He, M.; Xu, F. Research on an intelligent fault diagnosis method for nuclear power plants based on ETCN–SSA combined algorithm. Ann. Nucl. Energy 2025, 213, 111138. [Google Scholar] [CrossRef] [Scilit]
  21. Cummins, L.; Sommers, A.; Mittal, S.; Rahimi, S.; Seale, M.; Jabour, J.; Arnold, T. Explainable anomaly detection: Counterfactual driven what-if analysis. In Proceedings of the 2024 IEEE 6th International Conference on Cognitive Machine Intelligence (CogMI), Washington, DC, USA, 28–30 October 2024; pp. 144–151. [Google Scholar]
  22. Malhotra, P.; Vig, L.; Shroff, G.; Agarwal, P. Long Short Term Memory Networks for Anomaly Detection in Time Series. In Proceedings of the 23rd European Symposium on Artificial Neural Networks, Computational Intelligence and Machine Learning (ESANN 2015), Bruges, Belgium, 22–24 April 2015; pp. 89–94. [Google Scholar]
  23. Guo, X.; Chen, L.; Shen, C. Hierarchical adaptive deep convolution neural network and its application to bearing fault diagnosis. Measurement 2016, 93, 490–502. [Google Scholar] [CrossRef] [Scilit]
  24. Ulum, M.; Patriawan, D.A. Modeling and performance testing of anti-lock braking system (ABS) with variation of road friction coefficient to braking distance. Rekayasa 2022, 15, 340–345. [Google Scholar] [CrossRef] [Scilit]
  25. Abdullah, M.F.; Qasem, A.; Ali, G.; Farid, M.; Lim, H.S.; Lee, C.P.; Alsakkaf, N. Adaptive control techniques for improving anti-lock braking system performance in diverse friction scenarios. Int. J. Electr. Comput. Eng. 2025, 15, 1–10. [Google Scholar] [CrossRef] [Scilit]
  26. Fisher, Y.; Koltun, V. Multi-scale context aggregation by dilated convolutions. arXiv 2015, arXiv:1511.07122. [Google Scholar]
  27. Kang, J.; Kim, C.S.; Kang, J.W.; Gwak, J. Anomaly detection of the brake operating unit on metro vehicles using a one-class LSTM autoencoder. Appl. Sci. 2021, 11, 9290. [Google Scholar] [CrossRef] [Scilit]
  28. Scikit-Learn Developers. Scikit-Learn: Sklearn.preprocessing.MinMaxScaler. 2024. Available online: https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.MinMaxScaler.html (accessed on 30 October 2025).
  29. Kordi, F.; Fortier, P.; Miled, A. Optimized fixed-point MAC unit for neural network on FPGA. In Proceedings of the 2024 International Conference on Microelectronics (ICM), Doha, Qatar, 14–17 December 2024; IEEE: Piscataway, NJ, USA, 2024. [Google Scholar]
  30. Maier-Hein, L.; Bjoern, M. Metrics reloaded: Pitfalls and recommendations for image analysis validation. arXiv 2022, arXiv:2206.01653. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  31. Komadina, A.; Martinić, M.; Groš, S.; Mihajlović, Ž. Comparing threshold selection methods for network anomaly detection. IEEE Access 2024, 12, 1–10. [Google Scholar] [CrossRef] [Scilit]
  32. Wang, Z.; Dahouda, M.K.; Hwang, H.; Joe, I. Explanatory LSTM–AE-based anomaly detection for time series data in marine transportation. IEEE Access 2025, 13, 23195–23208. [Google Scholar] [CrossRef] [Scilit]
Figure 1. Typical configuration of an ABS.
Figure 1. Typical configuration of an ABS.
Electronics 15 00058 g001
Figure 2. Real-time FPGA fault detection mechanism using dual TCN models and MSE–MAE comparison.
Figure 2. Real-time FPGA fault detection mechanism using dual TCN models and MSE–MAE comparison.
Electronics 15 00058 g002
Figure 3. Data augmentation using TruckSim and Simulink, dual TCN training on GPU, and FPGA-based real-time fault detection.
Figure 3. Data augmentation using TruckSim and Simulink, dual TCN training on GPU, and FPGA-based real-time fault detection.
Electronics 15 00058 g003
Figure 4. TruckSim/Simulink co-simulation environment used to generate a vehicle dynamics dataset under normal and faulty operating conditions.
Figure 4. TruckSim/Simulink co-simulation environment used to generate a vehicle dynamics dataset under normal and faulty operating conditions.
Electronics 15 00058 g004
Figure 5. Normal braking behavior simulated in TruckSim. (Left) Longitudinal wheel and vehicle speeds. (Right) Corresponding ABS apply commands.
Figure 5. Normal braking behavior simulated in TruckSim. (Left) Longitudinal wheel and vehicle speeds. (Right) Corresponding ABS apply commands.
Electronics 15 00058 g005
Figure 6. Eight representative wheel-speed faulty scenarios extracted from the TruckSim–MATLAB/Simulink co-simulation. (ah) Each subplot shows longitudinal wheel speeds from sensors L1, R1, L2, and R2 as a function of time. The vertical axis represents speed (km/h) and the horizontal axis represents time(s).
Figure 6. Eight representative wheel-speed faulty scenarios extracted from the TruckSim–MATLAB/Simulink co-simulation. (ah) Each subplot shows longitudinal wheel speeds from sensors L1, R1, L2, and R2 as a function of time. The vertical axis represents speed (km/h) and the horizontal axis represents time(s).
Electronics 15 00058 g006
Figure 7. Architecture of the TCN. The diagram on the right illustrates the hierarchical dilation across three TCN layers.
Figure 7. Architecture of the TCN. The diagram on the right illustrates the hierarchical dilation across three TCN layers.
Electronics 15 00058 g007
Figure 8. FPGA implementation (PL part) of the prediction module interface with the ABS ECU.
Figure 8. FPGA implementation (PL part) of the prediction module interface with the ABS ECU.
Electronics 15 00058 g008
Figure 9. FPGA-based implementation of the TCN model and its interface with the HIL simulator and ABS ECU. The setup includes the FPGA prediction module (Xilinx ZCU102 board with an AMD Zynq UltraScale + MPSoC (AMD, Santa Clara, CA, USA)), the simulator backplane, analog I/O and signal-conditioning boards, and ECU connections via USB 3.0, J1939/CAN, and wheel-speed signal-conditioning channels.
Figure 9. FPGA-based implementation of the TCN model and its interface with the HIL simulator and ABS ECU. The setup includes the FPGA prediction module (Xilinx ZCU102 board with an AMD Zynq UltraScale + MPSoC (AMD, Santa Clara, CA, USA)), the simulator backplane, analog I/O and signal-conditioning boards, and ECU connections via USB 3.0, J1939/CAN, and wheel-speed signal-conditioning channels.
Electronics 15 00058 g009
Figure 10. Comparison results for a normal scenario: (a) Prediction and target comparison for roll angle and wheel-speed sensor signals using the faulty models; (b) Prediction and target comparison for roll angle and wheel-speed sensor signals using the normal models; (c) Average normalized MSE and MAE comparison for normal and faulty predictions under the normal scenario.
Figure 10. Comparison results for a normal scenario: (a) Prediction and target comparison for roll angle and wheel-speed sensor signals using the faulty models; (b) Prediction and target comparison for roll angle and wheel-speed sensor signals using the normal models; (c) Average normalized MSE and MAE comparison for normal and faulty predictions under the normal scenario.
Electronics 15 00058 g010
Figure 11. Comparison results for a faulty scenario: (a) Prediction versus target using the normal models for roll angle and wheel-speed sensor signals, and yaw rate (the black segment indicates the initial context used by the predictor); (b) Prediction versus target using the normal and faulty models for roll angle, wheel-speed sensor signals, and yaw rate (the black segment indicates the initial context used by the predictor); and (c) Average normalized MSE and MAE comparison for normal and faulty predictions under the faulty scenario.
Figure 11. Comparison results for a faulty scenario: (a) Prediction versus target using the normal models for roll angle and wheel-speed sensor signals, and yaw rate (the black segment indicates the initial context used by the predictor); (b) Prediction versus target using the normal and faulty models for roll angle, wheel-speed sensor signals, and yaw rate (the black segment indicates the initial context used by the predictor); and (c) Average normalized MSE and MAE comparison for normal and faulty predictions under the faulty scenario.
Electronics 15 00058 g011
Figure 12. Comparison of Bendix EC-60 ABS controller outputs under normal and faulty conditions: (a) Bendix EC-60 results under normal conditions; (b) Normal wheel-speed target versus model predictions (the black segment indicates the initial context window provided to the model before prediction); (c) Bendix EC-60 results under faulty conditions; and (d) Faulty wheel-speed target versus model predictions (the black segment indicates the initial context window provided to the model before prediction).
Figure 12. Comparison of Bendix EC-60 ABS controller outputs under normal and faulty conditions: (a) Bendix EC-60 results under normal conditions; (b) Normal wheel-speed target versus model predictions (the black segment indicates the initial context window provided to the model before prediction); (c) Bendix EC-60 results under faulty conditions; and (d) Faulty wheel-speed target versus model predictions (the black segment indicates the initial context window provided to the model before prediction).
Electronics 15 00058 g012
Table 1. Position of the proposed dual-TCN approach with respect to representative deep learning-based fault diagnosis methods.
Table 1. Position of the proposed dual-TCN approach with respect to representative deep learning-based fault diagnosis methods.
       Ref.       Domain & TargetCore ModelLearning SchemeDeploymentKey PerformanceKey Limitation/
Characteristic
[22]Automotive HIL (engine ECU)CNN–LSTMSupervised classificationPC/HIL≈98.8% accuracy (9 classes)PC-based; not integrated as a deterministic in-loop monitor
[22]Spacecraft telemetryLSTMSingle (normal-only anomaly detection)GPU≈89% anomaly recallThreshold-dependent; models only normal behaviour
[23]Bearing diagnosticsCNNSingle (multi-class fault classification)GPU≈99% accuracy (10 fault classes)Offline GPU-based analysis; no HIL or ECU integration
[20]Nuclear power plant CPSEnhanced TCNSupervised classificationPCHigher accuracy than DL baselinesDomain-specific; PC-based simulation environment
This workAutomotive HIL (ABS ECU, wheel-speed sensors)Dual TCNDual-model comparative (normal vs. faulty)FPGA (ZCU102)97.8% accuracy, 97.3% F1-scoreThreshold-free; deterministic real-time FPGA in-loop monitor
Table 2. Summary of normal and faulty scenarios generated in TruckSim–Simulink simulations.
Table 2. Summary of normal and faulty scenarios generated in TruckSim–Simulink simulations.
ScenarioAffected SignalsFault TypeDescription and Effect
0NoneNormalVehicle dynamics follow normal steering, braking, and speed profiles.
1Brake, SteeringDelayRandom delays added to brake (up to 0.5 s) and steering (up to 2 s) to simulate slow actuator response.
2BrakeDelayBrake actuation delayed randomly (up to 1 s) without affecting steering.
3Wheel speed, Brake, SteeringStuck-at valueWheel speed sensor stuck at a constant value; brake and steering delayed to simulate sensor failure or control lag.
4BrakeSudden maximumVehicle initial speed is limited; brake torque set to maximum instantly to simulate emergency braking.
5Wheel speed, BrakeDriftGradual increase in wheel speed and gradual decrease in braking torque over time to mimic sensor drift or calibration error.
6Wheel speedSpike or DropRandom speed spike or sudden drop to test sensor fault or extreme dynamic event.
7Wheel speed, BrakeScaling errorSensor outputs amplified or reduced, causing inconsistent speed and braking behavior.
8SteeringSaturationSteering input amplified up to maximum limits, simulating extreme or erroneous driver input.
Table 3. Fault scenarios in Simulink MATLAB model.
Table 3. Fault scenarios in Simulink MATLAB model.
Fault TypeFault DescriptionDiscrete-Time FormulationEffect on Vehicle DynamicsInitial Values
1Brake and steering delay b [ n ] = 0 , n Δ t < τ b , b t 0 , n Δ t τ b ,
τ b U [ 0 , 0.5 ] s
δ [ n ] = 0 , n Δ t < τ s , δ t 0 , n Δ t τ s ,
τ s U [ 0 , 2 ] s
Braking and steering responses are delayed, making vehicle control harderSpeed:
v t 0 (km/h) N ( μ v = 0.67 , σ v 2 = 0 . 56 2 ) ,
truncated to [ 0.17 , 1 ] .
Equivalent to v t 0 [ 20 , 120 ] km/h.
μ v = v range / 2 + v min + 10 v max = 0.67 ,
σ v = v range 1.5 v max = 0.56 .
[ v min / v max , 1 ] = [ 0.17 , 1 ] ,
v max = 120 km/h,
v min = 20 km/h,
v range = 100 km/h.
  Brake:
b t 0 (m/s2)
= 0 , p = 0.08 , N ( μ b = 0.14 , σ b 2 = 0 . 3 2 ) , p = 0.92
Truncated to [ 0 , 1 ] .
  Steering:
δ max , init ( ) = 1.5 ( 1.7 v t 0 v max + 260 ) 720 .
δ t 0 ( ) = 0 , p = 0.1 , N ( 0 , ( δ max , init / 1.5 ) 2 ) , p = 0.9
Truncated to [ δ max , init , δ max , init ] .
b max = 3 m/s2, δ max = 720 .
2Brake delay only b [ n ] = 0 , n Δ t < τ b , b t 0 , n Δ t τ b
τ b U [ 0 , 1 ] s
Only braking is delayed, increasing stopping distance.
3Stuck-at wheel speed with delay v [ n ] = v const ,
b [ n ] = 0 , n Δ t < τ b , b t 0 , n Δ t τ b
δ [ n ] = 0 , n Δ t < τ s , δ t 0 , n Δ t τ s
τ b , τ s U [ 3 , 5 ] s
Major lag in braking and steering, making vehicle difficult to control.
4Sudden maximum braking v [ n ] = max ( v min , v t 0 ) ,
b [ n ] = b max
Instantaneous braking from limited speed; mimics emergency stop.
5Drift in wheel speed and brake torque v [ n ] = v t 0 ( 1 + α n ) ,
b [ n ] = b t 0 ( 1 α n ) ,
α [ 0 , 0.02 ]
Simulates gradual sensor drift: speed rises, braking decreases.
6Speed spike or drop v [ n ] = v t 0 ( 1 + β ) , p = 0.2 , 0 , p = 0.1 , v t 0 , otherwise
β U [ 0 , 0.5 ]
Speed randomly spikes/drops, affecting stability.
7Scaling error in speed and brake signals v [ n ] = min ( v t 0 · k , v max ) ,
b [ n ] = min ( b t 0 · k , b max ) ,
k U [ 0.5 , 1.5 ]
Scaling mismatch in sensors causes inconsistent dynamics and control effort.
8Steering saturation δ [ n ] = min ( max ( δ t 0 · 9.5 , δ max ) , δ max ) Over-amplified steering input leads to oscillations or oversteering.
Table 4. Distribution of fault types in 5000 samples.
Table 4. Distribution of fault types in 5000 samples.
Fault TypeNumber of SamplesPercentage (%)
162512.5
263012.6
362812.6
458811.8
566413.3
658711.7
762712.5
865113.0
Total5000100
Table 5. TruckSim parameters used for ABS TCN model dataset generation.
Table 5. TruckSim parameters used for ABS TCN model dataset generation.
Variable NameDescriptionUnitRole
Pbk_ConBrake pressure commandUnitless ([−1, 0])Input
Steer_SWSteering wheel angle(°)Input
ABS_L1 to ABS_L5ABS control state for five left wheelsBooleanInput
ABS_R1 to ABS_R5ABS control state for five right wheelsBooleanInput
GearStatGear statusIntegerInput
ThrottleThrottle pedal positionUnitless ([0, 1])Input
VxLongitudinal speedkm/hOutput
AVzYaw rate°/sOutput
AVz_2Yaw rate (trailer)°/sOutput
AyLateral accelerationm/s2Output
Ay_2Lateral acceleration (trailer)m/s2Output
FsMean wheel load (front/rear, left/right)NOutput
RollRoll angle(°)Output
Vx_L1 to Vx_L5Five left wheel speedskm/hOutput
Vx_R1 to Vx_R5Five right wheel speedskm/hOutput
Table 6. Input and output signal configuration of the Bendix EC-60 ABS ECU.
Table 6. Input and output signal configuration of the Bendix EC-60 ABS ECU.
CategorySignalDescription
InputsWheel Speed Sensors (Steering-LH, Steering-RH, Drive1-LH, Drive1-RH, Drive2-LH, Drive2-RH)Measure wheel-end speed on each side of the front and rear axles. Dual tires on a single axle end are represented by one sensor.
Brake Pressure SensorProvides real-time brake pressure feedback for closed-loop control accuracy.
OutputsPressure Modulating Valves (PMV-Steering-LH, PMV-Steering-RH, PMV-Drive1-LH, PMV-Drive1-RH, PMV-Drive2-LH, PMV-Drive2-RH)Regulate braking pressure at each wheel-end to prevent wheel lock-up during braking.
Traction Control Valves (TCV-Drive1-LH, TCV-Drive1-RH, TCV-Drive2-LH, TCV-Drive2-RH)Engage traction control by applying selective braking to restore grip during wheel slip events.
Table 7. Performance metrics based on confusion matrix [30].
Table 7. Performance metrics based on confusion matrix [30].
MetricDefinitionFormula
AccuracyProportion of correct predictions TP + TN TP + TN + FP + FN
Precision (PPV)Proportion of positive predictions that are correct TP TP + FP
Recall (Sensitivity)Proportion of actual positives correctly identified TP TP + FN
SpecificityProportion of actual negatives correctly identified TN TN + FP
F1-ScoreHarmonic mean of precision and recall 2 TP 2 TP + FP + FN
Table 8. Performance metrics for fault detection models with different dataset sizes.
Table 8. Performance metrics for fault detection models with different dataset sizes.
Dataset SizeTPFPTNFNAccuracyPrecisionRecallF1-Score
200015657143440.7480.7330.7800.756
300025362238470.8050.8030.8430.823
400035654346440.8800.8680.8900.879
500046755445330.9120.8940.9340.914
700063777623630.9100.8920.9100.901
Table 9. Performance comparison between single-TCN and dual-TCN approaches.
Table 9. Performance comparison between single-TCN and dual-TCN approaches.
MetricSingle-TCNDual-TCN (Proposed)
Detection Accuracy (%)91.497.8
Precision (%)89.296.5
Recall (%)88.798.2
F1-Score (%)88.997.3
Table 10. FPGA resource utilization summary for the implemented TCN-based fault detection architecture.
Table 10. FPGA resource utilization summary for the implemented TCN-based fault detection architecture.
ResourceEstimationAvailableUtilization (%)
LUT34,815274,08012.70
LUTRAM6144,0000.01
FF109,935548,16020.06
BRAM17491219.08
DSP12825205.08
IO223286.71
BUFG14040.25
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kordi, F.; Fortier, P.; Miled, A. FPGA-Based Dual Learning Model for Wheel Speed Sensor Fault Detection in ABS Systems Using HIL Simulations. Electronics 2026, 15, 58. https://doi.org/10.3390/electronics15010058

AMA Style

Kordi F, Fortier P, Miled A. FPGA-Based Dual Learning Model for Wheel Speed Sensor Fault Detection in ABS Systems Using HIL Simulations. Electronics. 2026; 15(1):58. https://doi.org/10.3390/electronics15010058

Chicago/Turabian Style

Kordi, Farshideh, Paul Fortier, and Amine Miled. 2026. "FPGA-Based Dual Learning Model for Wheel Speed Sensor Fault Detection in ABS Systems Using HIL Simulations" Electronics 15, no. 1: 58. https://doi.org/10.3390/electronics15010058

APA Style

Kordi, F., Fortier, P., & Miled, A. (2026). FPGA-Based Dual Learning Model for Wheel Speed Sensor Fault Detection in ABS Systems Using HIL Simulations. Electronics, 15(1), 58. https://doi.org/10.3390/electronics15010058

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop