Model-Based Condition Monitoring of the Sensors and Actuators of an Electric and Automated Vehicle

Constant monitoring of driving conditions and observation of the surrounding area are essential for achieving reliable, high-quality autonomous driving. This requires more reliable sensors and actuators, as there is always the potential that sensors and actuators will fail under real-world conditions. The sensitive condition-monitoring methods of sensors and actuators should be used to improve the reliability of the sensors and actuators. They should be able to detect and isolate the abnormal situations of faulty sensors and actuators. In this paper, a developed model-based method for condition monitoring of the sensors and actuators in an electric vehicle is presented that can determine whether a sensor has a fault and further reconfigure the sensor signal, as well as detect the abnormal behavior of the actuators with the reconfigured sensor signals. Through the simulation data obtained by the vehicle model in complex road conditions, it is proved that the method is effective for the state detection of sensors and actuators.


Introduction
Autonomous cars have gained popularity in recent years, and several are presently being tested on public roads to improve their reliability in real-world situations. The goal of developing automated vehicle systems for today's cars is to make drivers and passengers safer and more comfortable by taking over the tasks of the drivers. With the help of actuators, sensors, and data processing, mechatronic systems are being built into modern vehicles to improve their performance, range of functions, quality, and reliability [1,2]. The measurement of the dynamic characteristics of the vehicles and the observation of the surroundings, which is accomplished by several sensors, are crucial components in the realization of high-level autonomous driving. In autonomous vehicles, many different sensors will be equipped, such as the inertial measurement unit (IMU), steering-wheel angle sensor and wheel-speed sensor, etc. For example, the IMU plays an irreplaceable role in the lateral control of the car [3]. Although the current sensors are advanced, in real situations under long-term operation, there is always the possibility that the sensors may fail. In addition, these sensors are commercially accessible and employed in carstability systems, but their price is an issue for manufacturers who are attempting to reduce costs [4]. In addition, the failed sensors will produce incorrect signals, which will then influence the control of the vehicle. On the other hand, steering and drive systems in modern electric vehicles are becoming increasingly automated by electric actuators, which simplifies driving tasks. However, for these automation benefits to be realized, each actuator must operate without fault. However, the additional electric actuators have increased the complexity of the vehicle because the causes of faults are becoming more complicated. In addition, with increasing requirements for high reliability and safety, actuator fault detection is becoming more and more important. To increase the reliability of the sensors and actuators, sensitive fault detection and diagnostic techniques should be

Related Work
A systematic overview of fault detection and fault diagnosis is given in the research of Professor Isermann, who formalized the concept of the problem. The process of determining whether or not a fault has occurred in a monitored system is called fault detection. Using the dependencies that exist between various observable signals, it examines the processes, actuators, and sensors to identify any faults that may have occurred. Isolating the problem and locating it are additional duties that fall under this category. The extent of the fault is determined by the fault-identification process, whereas the location and kind of the fault are determined by the fault-isolation process. Fault diagnosis is a collective term that refers to both fault isolation and fault identification. The task of fault diagnosis consists of determining the type of fault, together with as many facts as possible about the fault [5].

Fault Detection
Fault detection is a subsection of control engineering, which is based on signal processing, pattern recognition, reliability theory, artificial intelligence, applied mathematics, etc. With the development and improvement of fault detection, the methods can be divided into the model-based method, the signal-based method, and the knowledge-based method [6].
Analytical redundancy is the foundation of model-based approaches [7]. The essence of this concept is the comparison of the actual outputs of the monitored system with the outputs obtained from an analytical mathematical model. It involves two stages: residual generation and residual evaluation. According to the different ways to generate residuals, the model-based method can be classified as state observers, parity equations, and parameter estimation [8].
The basic idea of state observers is to reconstruct or estimate the measurable variables of the system through the measured signals and mathematical model of the system, and detect and isolate faults using residual signals that are generated by comparing the actual measured value with the estimated value [8]. This method can detect faults in real time and does not require a continuous excitation signal [11]. In [2], the authors used a state estimator to create a bank of residuals and the adaptive threshold to identify the abnormal change in residual signals to detect the fault of the sensors and actuators of the vehicle. In [9], a designed observer was introduced that can monitor the health of lateral vehicle control systems, which includes a GPS system, a gyroscope, and an accelerometer.
In [10], a sliding model was used in the design of a state observer for fault detection in a steer-by-wire vehicle. In [3], Kalman filters were applied to find the faulty sensors and approach good state estimation considering stochastic problems. In addition, a virtual sensor was designed in [4], which can be used to diagnose faults in a real sensor.
In the mathematical model of the system, parity equations define the dynamic, redundant connection between the input and output variables. When actual process behavior is compared to expected behavior, faults are found. Comparatively simpler to develop than observers are parity equations. Most of them are only useful in linear systems. Therefore, it is challenging to identify faults in nonlinear systems. Parity equations are sensitive to additive faults [13]. In [1], 12 models are used to yield the residuals, and then the calculated residuals are used for fault diagnosis. In [14], eight models were used to transform the measured wheel speeds, steering angle, and yaw rate into vehicle central axis information, and then a reference central axis speed was selected based on this information. Thus, the speeds for all wheel sides were estimated by the selected central speed, which were compared with measurements to identify faults.
The basic idea of parameter estimation is to diagnose faults in a process by detecting changes in parameters in the model. It requires that faults be reflected in parameters [13]. Reference parameters are compared with actual parameters, which are estimated by measurements using a mathematical model. In [1], parameters of an active suspension were estimated with the Discrete Square Root Filter in Information Form, which is based on the recursive least squares algorithm.

Fault Diagnosis
The objective of fault diagnosis is to determine the kind, the location, the size, and the time-varying behavior of the fault. It follows fault detection and includes fault isolation and identification. In general, there are two main types of diagnosis-classification methods and diagnostic reasoning methods. Recently, the field of classification methods, especially neural networks and fuzzy logic classification methods, has been developed. Likewise, rulebased reasoning methods are increasingly used in fault diagnosis [11]. If the fault-symptom relationships are not available in advance, a system that can be learned from experimental or simulated data is required. Then, with fault symptoms, the two fault-diagnosis methods can be applied-classification methods and inference methods [8].
If there is no clear causality between fault and symptom, classification methods can be trained for fault diagnosis, such as statistical and geometrical classification methods, neural networks, and fuzzy clustering. In [15], a fault-diagnosis method was introduced that is based on the combination of priory structural knowledge and measurement data to create a hierarchical diagnosis system. This method can be adapted to different motors. Because of a self-learning neuro-fuzzy scheme, this system is transparent and has increased robustness over traditional classification schemes.
The inference methods are applied with prior knowledge of symptom-cause relationships. For example, different sensor faults affect the symptoms in different ways, which means the change in symptom vectors is related to different sensor faults. Therefore, a fuzzy logic system based on the fault-symptom relationships can be used to diagnose the fault [1].

Contribution of This Work
It can be seen from the above literature review that there has been a lot of research on model-based fault detection, but in general, there are not so many studies about the complete condition monitoring of a whole vehicle, including sensors and electric actuators. Therefore, in this article, we will use the limited sensor information to perform modelbased condition monitoring of the entire vehicle, including sensors and electric steering and driving actuators. We will first introduce how to use the model-based method to estimate the sensor value that we need, and then judge the state of the sensor by generating the residual and evaluating the residual. In this process, we will do a comprehensive calculation of the basic dynamic parameters of the vehicle, which is an improvement from other papers that only focus on lateral or longitudinal characteristics. If the sensor is in an abnormal state, we will use the estimated sensor value to replace the actual sensor value to perform a simple sensor recovery. After ensuring that the sensor value is not significantly abnormal, a state detection of the actuators will be performed. This method of first detecting the states of the sensors and then using the corrected sensor values to further detect the actuators is also not included in other related work. Since the symptoms generated by the model-based method are all transparent, in this paper, we mainly use the simple traditional logic gate relationship to deal with the fault symptoms for the purpose of simple abnormal state warnings of the sensors and actuators. The advantage of this method is that it is simple and effective, and requires less computation. This article is based on the master theses [16][17][18][19], which were tutored by the author of this article and continues to be developed and improved. The method discussed in this paper can be summarized in Figure 1.

Model-Based Sensor Condition Monitoring
Because this article is based on the demonstrator vehicle in the "SmartLoad" [12] project, we first briefly introduce the sensors contained in the demonstrator vehicle. The demonstrator vehicle has a steering-wheel angle sensor, a steering-wheel torque sensor, a force sensor for measuring the force on the tie rod, two wheel-speed sensors on the rear wheels and an IMU (Inertial Measurement Unit). Therefore, the following research will mainly focus on the condition monitoring of these six sensors. The main steps in the state detection of the sensors are designed to obtain the predicted values of the six sensors through different mathematical models, which were described in Sections 3.1-3.6. To ensure the accuracy of the predicted model, the models were then verified in Section 3.7. After ensuring the accuracy of the models, the predicted values were compared with the measured values of the sensors to obtain the residuals, which was introduced in Section 3.8, and the residuals were further analyzed to obtain the state information of the sensors, which were described in Section 3.9.
3.1. Model of the Steering-Wheel Angle 3.1.1. Model with 2-DOF System A 2-DOF system combining the compliance, inertia and friction elements was used to model the steering system. As shown in Figure 2, there are two inertia elements in this model. One inertia element is for the steering-wheel to the torsion bar, and another inertia element is for the rack and pinion.
To describe the model, the following equations can be written according to Figure 2 [20]: where I S+uC+IC+H is the Inertia of the steering wheel and steering column, m R is the equivalent mass on the rack, c D , d TT , d R are the damping constant of steering wheel, rack and pinion connection and rack, respectively, k D , k TT , k R are the spring constant of steering wheel, rack and pinion connection and rack, respectively, M S is the steering-wheel torque and M FR,P is the concentrated frictional torque, F R , F P R is the tie-rod forces on the rack and F FR,R is the concentrated frictional force, δ S , S R , i are the steering-wheel angle, shift of the rack and the steering ratio, respectively. From the original Equations (1), we can lump the friction torque and friction force into one variable. In addition, since there is no steering wheel on the real car, we can omit the part of the steering wheel. Therefore, the equations for the steering model can be described as follows: where M FR,S is the total concentrated frictional torque, F S is total tie-rod forces on the rack For the estimation of the steering-wheel angle, an unscented Kalman filter is applied. According to Equation (2), the state model can be represented as where w S , w δ , wṠ and wδ are the process noise of the state model.
The observation model is defined as where n S , n δ are the measurement noises of the sensor. The mass m R contains not only the mass of the rack but also the equivalent mass of the suspension, which is related to the tires. In this work, the displacement of the rack S R is unavailable. Therefore, it will be calculated from the measurement of steering-wheel angle δ S with a constant steering ratio between the steering wheel and rack i: After the estimation of steering-wheel angleδ SKF , the residual of the steering-wheel angle is generated by comparing the estimated value with the measured signal:

Model with Wheel-Steering Angle
In addition to calculating the steering angle with the Kalman filter mentioned above, the steering-wheel angle can also be calculated from the signals measured by the yaw rate from the IMU and the wheel-speed sensors using a simple kinematic formula. First, the front wheel-steering angles are calculated: where δ f l is the left front wheel-steering angle, δ f r is the right front wheel-steering angle, l f is the distance between center of gravity and front axle, l r is the distance between center of gravity and rear axle, t r is the track width, ψ is the yaw rate, v rl is the left rear wheel velocity, v rr is the right rear wheel velocity, Then the average of the two wheel-steering angles as follows: the steering wheel angleδ S is determined with the steering ratio i steer : After estimating the steering-wheel angle, the residue of the steering-wheel angle is formed by comparing the estimated value with the measured signal:

Model of the Steering-Wheel Torque
The 2 DOF model is used here again as the equation (2). In this way, it can be speculated from the equation that steering-wheel torque is approximately a linear function of the steering-wheel angle and the first-order, second-order derivative: where a 1 , a 2 , a 3 are the factors, which can be determined by simulated data. The approximated steering-wheel torqueM S is compared with the measured signal of steering-wheel torque sensor M S , and the residual of the steering-wheel torque can be estimated:

Model of the Yaw Rate
The single-track model (or bicycle model) has a good performance estimate of side-slip angle and yaw rate at low lateral acceleration. The state model can be defined as follows: where w β and wψ are the process noises, β is the side-slip angle, ψ is the yaw rate, c f and c r are the cornering stiffness of front and cornering stiffness of rear wheel, m is the vehicle mass, v x is the longitudinal velocity, J z is the vehicle yaw inertia.
The lateral acceleration and the yaw rate are used as measurement vectors, then the observation model can be defined as: where n a y and nψ are the measurement noises, a y is the lateral acceleration.
The estimated yaw rate is compared to the measured yaw rate to obtain the residual:

Model of the Longitudinal and Lateral Acceleration
We used the two-track model to figure out the longitudinal and lateral accelerations. Figure 3 shows the most important vehicle parameters, movement variables, and forces that act on a two-track model. Figure 3. Two-track model [21].
The formula of the velocity v SP in the vehicle-fixed coordinate system is: Then the center of gravity acceleration a SP can be calculated: The lateral acceleration a y of the vehicle can be determined from the two-track model: whereψ is available from the sensor signal andβ will be calculated as the model in Section 3.3.
The longitudinal acceleration expression of the vehicle can be obtained according to vehicle dynamics: Thus, the residual of accelerations can be obtained by comparing the generated value with the sensor data:

Model with the Average of the Two Central Axis Speed
The left and right rear wheel speeds are estimated through the kinematic model, which is also used in [14]. The basic idea is to convert measured wheel speeds into vehicle central axis information with steering-wheel angle δ s (front wheel-steering angle δ f ) and yaw rateψ. Here the central axis speed refers to the speed of the center of gravity of the car, because there are two calculation methods for the wheel-steering angle, so two kinds of speeds can also be obtained, and then the average of the two speeds is taken as the final speed of the center of gravity of the car. The average of the central axis velocity is then used to estimate the speed for both rear wheels, which are compared with measured values to yield the residuals.
There are two ways to calculate the wheel-steering angle. The wheel-steering angle can be estimated from the steering-wheel angle with the equation (9). In addition, it can also be estimated using the yaw rate, which was introduced in Section 3.1.2 with Equation (7). We can also obtain two corresponding values for side-slip angle β and curvature C from Equations (22) and (23).
We assign the side-slip angle β and curvature C to Equations (24)-(27) using individual wheel speeds, and then we could obtain four central axis speeds Calculate the average of two central axis speeds as: Then the average of the central axis speed is employed to estimate the speed of each rear wheel with Equations (30)-(33).
The speeds with index δ indicate that the side-slip angle and curvature are calculated with the steering-wheel angle. In addition, the speed with indexψ indicates that the side-slip angle and curvature are calculated with the yaw rate.

Model with Kalman Filter for Longitudinal Speed
The estimation of the left and right rear wheel speeds will be carried out in two steps. First, a two-stage adaptive Kalman filter, which was designed first in [21], is used to estimate the longitudinal speed of the vehicle, and then this speed is employed to calculate the left and right rear wheel speeds. The structure of the process is shown in Figure 4. Stage I of the two-stage adaptive Kalman filter consists of two Kalman filters. The Kalman filter I is responsible for obtaining the derivative of the longitudinal acceleration a v x from the longitudinal acceleration signal a x , the measured yaw rateψ, and the estimated side-slip angleβ from the model in Section 3.3. The Kalman filter II deals with calculating the wheel circumferential speedsv xw<pos> for avoiding the delay of signal, and, in this calculation, the yaw rate is taken into account. Moreover, the Kalman filter II attenuates the noise and delay from the signals for smooth output signals.
Stage II consists of the Kalman filter III, which is responsible for estimating the longitudinal speed.
As introduced in Section 3.5.1, we could now replace the average central axis speed in (30)-(33) with the Kalman filter longitudinal speed. In addition, we could also obtain the four-wheel speed:v rl_KF_δ ,v rr_KF_δ ,v rl_KF_ψ ,v rr_KF_ψ .
Then we could obtain a total of eight residuals using the above methods: In addition, since we also estimate the velocity and acceleration with Kalman filter, we can also obtain another two residuals: In addition, from (22) and (13), we could also obtain another two residuals for the side-slip angle:

Model of Tie-Rod Force
In this work, the forces on the left and right tie rods are estimated together as the total tie-rod force on the rack. In a normal driving situation, there is a linear relationship among the steering-wheel torque M S , the lateral forces of the left and right front wheels F y f l , F y f r , the concentrated friction torque M FR,S and the total tie-rod force. However, in practice, these two forces F y f l and F y f r are unknown and difficult to obtain under complex test conditions. Therefore, we replace the sum of these two forces with the product of the vehicle mass and the lateral acceleration. Therefore, a model can be created to approximate the total force on the tie rod: where a 4 , a 5 are the coefficients determined in the simulation. Then, a new residual is:

Model Validation
Since the main content of this method is to compare the signal predicted by the model with the signal measured by the sensor to monitor the condition of the sensor, the accuracy of the model is essential. Therefore, we must first validate the model. The simulated data that is collected from the CarMaker would be here in place of the actual sensor signal. The CarMaker platform is a fully fledged virtual driving environment developed by IPG AUTOMOTIVE, and it can offer a wide range of applications, from offline operation to hardware-in-the-loop (HIL) tests. The CarMaker vehicle model is extremely realistic, since it comprises models of the driving system, the tires, the steering system, the suspension, the sprung body, the driver, the road, and the environment [22]. Therefore, the car model built in CarMaker can actually be regarded as a virtual car. All simulation results in this article use the same car model, which was created in CarMaker based on the validated parameters of the real car in project "SmartLoad" [12]. The relevant vehicle parameters are listed in Table A1 in Appendix A. Figure 5 shows the comparison of simulated and measured values for the steeringwheel angle, the steering-wheel torque, the yaw rate, the left rear wheel velocity, the right rear wheel velocity and the tie-rod force. The blue line shows the measured values, the other colours show the simulated values, i.e., the sensor signals predicted by the model. It can be seen that the results are extremely precise. A relatively accurate model will also facilitate subsequent anomaly detection, because in the event of a fault, the difference between the predicted value and the measured value is obvious. Figure 5. Results of model validation: Comparison of the measured data (blue line) and the simulated data (lines with other colours) of the steering-wheel angle, the steering-wheel torque, the yaw-rate, the left rear wheel velocity, the right rear wheel velocity and the tie-rod force.

Symptom Generation
The residual value generated in the fault detection can also be called the symptom of the fault. We must first perform a series of processes on it. Due to a series of influences, such as model accuracy or extreme driving operations, the residual value will generally have a fluctuation range, and the variable residual range under different parameters is also different. Therefore, the residual is generally first analyzed, and a threshold within a normal range will be given. Depending on the threshold, anomaly detection usually also exhibits different degrees of sensitivity. When a residual threshold is given, there are usually two types of thresholds-static thresholds and dynamic thresholds. The establishment of the static threshold is relatively simple, but it is not suitable for changing situations, while the establishment of the dynamic threshold is relatively complex, but it can be more suitable for complex situations. In this article, we first use the static threshold because of the simplicity of its implementation, and since the system we designed in this article is only for the detection of anomalies, the static threshold can already be well implemented. A simple example is shown in Figure 6. The red dotted line represents the normal threshold of the residual of the current steering angle, and the range beyond the red dotted line is regarded as an abnormal situation. After a series of tests, we determined the normal threshold range for each residual value, set the residual within its corresponding threshold range to 0, and set the residual exceeding its corresponding threshold to 1. From this, we obtain a symptom table for further state analysis of the six sensors: the steering-wheel angle sensor δ S , the steeringwheel torque sensor M S , the yaw rate sensorψ, the velocity of left rear wheel v rl , the velocity of right rear wheel v rr and the tie-rod force sensor F TieRod .
For example, when an exemplary sensor fails, it can be clearly seen from Figure 7 that between 20 and 40 s, each residual value presents different warning states: 0 means there is no abnormal situation, and 1 means there is an abnormal situation. Overall, the alarm starts at 20 s and ends at 40 s. From this, it can be judged that the sensor system has an abnormal situation between 20 and 40 s. When the monitoring system needs to be further diagnosed to determine which sensor is faulty, a series of judgment rules need to be made according to Table 1. As can be seen from the table, the faulty symptoms of the two speed sensors are the same, but if the positive and negative residuals are analyzed using the judgment criteria listed below, it can also be concluded which speed sensor is faulty. Table 1. Fault-symptom relationships of r 1 to r 8 for condition monitoring of six sensors: the steeringwheel angle sensor δ S , the steering-wheel torque sensor M S , the yaw rate sensorψ, the velocity of left rear wheel v rl , the velocity of right rear wheel v rr and the tie-rod force sensor F TieRod . IF r 1 is normal AND r 2 is abnormal AND r 3 is abnormal, THEN steering-wheel angle sensor is faulty.
IF r 1 is normal AND r 2 is normal AND r 3 is abnormal AND r 4 is normal AND r 17 is normal AND r 18 is normal AND r 19 is abnormal, THEN steering-wheel torque sensor is faulty.
IF r 1 is normal AND r 2 is abnormal AND r 3 is normal AND r 4 is abnormal AND left rear wheel-speed sensor is normal AND right rear wheel-speed sensor is normal, THEN yaw rate sensor is faulty. IF r 7 is abnormal AND r 9 is abnormal AND r 11 is abnormal AND r 13 is abnormal AND r 10 is abnormal AND r 14 is abnormal AND r 14 is negative, THEN right rear wheel-speed sensor is faulty. IF r 7 is abnormal AND r 9 is abnormal AND r 11 is abnormal AND r 13 is abnormal AND r 14 is abnormal AND r 10 is abnormal AND r 10 is negative, THEN left rear wheel-speed sensor is faulty.
IF r 1 is normal AND r 2 is normal AND r 3 is normal AND r 4 is normal AND r 17 is normal AND r 18 is normal AND r 19 is abnormal, THEN tie-rod force sensor is faulty. According to the judgment criteria given above, we can obtain the result as shown in Figure 8, i.e., between 20 and 40 s, the left rear wheel-speed sensor fails (purple line). At the same time, the status of the other five sensors is normal, and the results correspond to the other lines, which coincide with the blue line. From the above fault-symptom table, it can be inferred that there are more than six rules. After the verification of the diagnosis rate, these six rules have the highest diagnostic rate and efficiency, so they are written here. Figure 8. Result of sensor condition monitoring: the case is that the left rear wheel velocity fails between the 20 s and 40 s ("CD" is an abbreviation for "condition", "0" refers to the normal state, "1" refers to the faulty state).

Sensor Reconfiguration
The results of the condition monitoring of the sensors help correct the sensor data input to the actuator condition-monitoring process as Figure 9 shows. When the sensor is running normally, we use the original sensor data in the actuator condition monitoring, but when the sensor condition monitoring shows abnormalities, we use the sensor value estimated by the model in the next actuator monitoring. For example, the demo vehicle is driving on the test route. A total-loss fault occurs on the left rear wheel-speed sensor at 20 s and lasts for 20 s. The sensor value with no fault is shown as the blue lines in Figure 10, the actual sensor-measured value with fault is shown as the red line, the model estimated value is shown as the yellow line, and then as input to the followed system. The corrected speed sensor value will be very close to the original no-fault value despite the fault. This process can ensure that the system will always have relatively accurate sensor values for subsequent control and actuator status detection, and minimize the impact of sensor failures on the entire system.

Model-Based Actuator Condition Monitoring
Before introducing the method of condition monitoring of the actuator system, the actuator structure of the demonstrator is briefly introduced. The structure of the actuator system in the demonstrator vehicle is shown in Figure 11. It is a 1:1.5 scale vehicle with Ackermann steering and wheel-selective electric drives on the steered axle. The rear axle of the vehicle is designed as a non-driven axle. The two wheels of the steered front axle are driven individually (EM A1 and EM A2 ). The steering system consists of a steering column, a steering gear (Z) with rack and pinion and the tie rods. Two steering actuators, which are placed on the steering column, are available for controlling the steering angle. One of the steering motors serves as a redundancy. The wheel-selective drive enables independent generation of a drive torque on each wheel of the front axle. By distributing the drive torques to the two wheels, a steering torque can be generated, which can be used to control a steering angle as the second redundancy of the steering function. The method for condition monitoring of the actuator is to calculate the ideal driving state of the car through the control signals, and compare it with the actual driving state of the demonstrator calculated by the sensor signal to obtain the current state of the actuator. In addition to the sensor signals introduced in the previous section, what we can use for condition monitoring of the actuators includes the target speed, the target steering-wheel angle, and the target torque of the actuator given by the controller.
The model used in the condition monitoring of the actuator is actually the same as the model used in the sensor condition monitoring. The only difference is that the input to the model is the current measurement value of the sensor during the fault detection of the sensor, which is the so-called car's actual state. However, in the condition monitoring of the actuator, the input to the model is the target state of the vehicle, i.e., the theoretical state when the actuator does not fail, and the current state of the vehicle actuator can be detected through the difference.
First, we are still going to use the linear single-track model from Section 3.3 for the estimation of the side-slip angle and yaw rate. This has been introduced in the previous paragraph and will not be repeated here. To calculate the desired driving state of the car in the current ideal state, we need to use the target speed and target angle as the model inputs for the calculation of the ideal side-slip angle and yaw rate. From this model, we could obtain two values related to the condition monitoring of the steering motor: In addition to the model mentioned in Section 3.3, we will also use the models mentioned in Section 3.4. The difference here is used to calculate the ideal longitudinal and lateral acceleration with the target velocity and ideal yaw rate, as well as the ideal side-slip angle that was calculated before. From this model, we could also obtain two values related to the condition monitoring of the steering motor and driving motor: The differences between target values and actual measured values of the steeringwheel angle and steering-wheel torque can be used to detect the condition of the actuators: The actual measured value of velocity v can be generated from two rear wheel-speed sensors. According to the condition monitoring of the sensor, it is decided whether to use the measured value or the corresponding predicted value. v actual = (ω rr + ω rl ) · r 0 2 (51) Moreover, we could also use the same model from Section 3.6 to estimate the ideal force on tie rod F TieRod ideal . The only difference here is to use the ideal lateral acceleration and target steering torque.
Then, we could also obtain the differences between target values and actual measured values as: When each actuator fails, the symptoms mentioned above will also change accordingly. From this, we can also diagnose which actuator is faulty through a symptom rule table.
Here, for a clearer explanation, we name case a when the steering actuator fails and case b when the driving actuator fails.

Case a: Failure of Steering Motor
As shown in Figure 12, when both steering motors fail, the corresponding fault symptoms change. It can be clearly seen from the figure that after 104 s, the corresponding eight symptoms have an obvious change compared to the previous time when no failure occurred. We have introduced the static threshold in Figure 6; we also use the same method here, setting the part exceeding the threshold as abnormal as 1, and the part not exceeding the threshold as normal as 0. Then we could obtain a symptom regularity Table 2 that is similar to the sensor condition monitoring.  Table 2. Fault-symptom relationships of r 1 to r 8 for condition monitoring of actuators of the steering system (case a). It can be seen from Table 2 that the symptom rules are the same for the two steering motors, and because the sensor on the steering rod measures the sum torque of the two steering motors, it can only be determined from the dynamic state quantity whether the steering motor is faulty. Specifically, to distinguish which steering motor, then it is necessary to use the respective target torques of the two steering motors, and in the event of a fault, the target torques will also change accordingly. A simple schematic diagram of the symptoms changing is shown in Figure 13. It can be seen that at the position of 104s, eight fault symptoms have alarms of different degrees. The abnormality of the eight symptoms corresponds to the fault of the steering motor. Through further analysis of its target torque, it can be obtained as shown in Figure 14 that the two steering motors have failed in the current situation.

Case b: Failure of Driving Motor
The method used to detect the failure of the drive actuator is actually similar to that of the steering actuator. It can be seen from Figure 15 that when the drive actuator fails, its eight symptoms show different trends, and the force on the tie rod and the steering-wheel torque have obvious changes, while the other symptoms are not as obvious as the situation with the steering motor. We also set different static thresholds for different symptoms, and set the ones that exceed the thresholds to 1, which is abnormal, and those that are within the thresholds to 0, which is normal. From the difference in representation under different conditions, we can easily detect the current state of the actuator through a symptom regularity Table 3 that is similar to the sensor condition monitoring.  Table 3. Fault-symptom relationships r 1 to r 8 for condition monitoring of actuators of the driving system (case b). As for the left or right side of the drive motor failing, the symptom from the tie-rod force will change significantly. To distinguish the fault that occurs on the left side or the right side, we can use the positive and negative values of the symptom to judge. It is also a simple schematic diagram of the symptoms changing, as shown in Figure 16. It can be seen that when the driving actuator is abnormal, the symptoms alarming will be significantly less than those associated with the abnormal situation of the steering motor. From this, it can be judged that the motor is abnormal after 104 s. Through further analysis of the tie-rod force symbol, it can be concluded that the left motor is abnormal, as shown in Figure 17.

Performance Evaluation
Now we want to evaluate the performance of the method discussed in this article. The two paths we mainly use here are derived from project SmartLoad [12]. Compared with the general test path, these two paths are more complex and cover a lot of extreme driving situations, which is good for testing the robustness of this method. The two paths are shown in Figures 18 and 19. In the test, the data we use is obtained from the simulation in CarMaker with the car model of the project, which is used to replace the data of the sensors on the real car. In this paper, the tested sensor fault types are divided into four types, namely: total-loss fault, positive offset, negative offset and outlier. Total-loss fault means that the sensor has no function at all, and the displayed data are 0; positive offset fault means that the data displayed by the sensor has a positive deviation from the actual data; negative offset fault means that the sensor data have a negative deviation from the actual data, and outlier fault refers to a large outlier in the sensor data over a very short time such as one second. The monitoring result is to be able to detect abnormalities as the acceptance standard. That is to say, the method introduced in this article only detects the abnormalities of the sensors, and the detection result for the abnormality is 1, without specific fault classification, while the result is 0 when the sensor is normal. Figure 18. Short round driving test circuit , the red line represents the route, and the yellow square represents where the car starts driving. Figure 19. Long round driving test circuit , the red line represents the route, and the yellow square represents where the car starts driving.
For sensors, we have completed 48 tests. They are for six sensors, and each sensor has four fault types. The tests were performed under the two paths shown in Figures 18 and 19, and each test lasts 60 s. The method we use here to evaluate performance is performance metrics for classification problems.
The simplest performance metric for classification is the accuracy rate. This can be done with the formula: The accuracy rates for the sensor monitoring are shown in Figure 20. From the accuracy rate in the figure, we can see that the accuracy rate of the abnormal condition monitoring of the sensors is outstanding and can reach more than 0.95. Although the overall accuracy rate of the tests is already very high, if it is aimed at a single test, there are still problems. For example, in the case of a total-loss fault of the IMU sensor, the accuracy rate is only 0.86. Figure 21 shows the diagnostic results (blue line) and the actual state of the fault (red line). It can be seen from the figure that no fault is detected between 35 and 40 s, and the same problem still exists between 24.5 and 25.5 s. To find the reason for this, we can look at the original sensor data. As shown in Figure 22, the blue line refers to IMU sensor data with no fault, and the red line refers to IMU sensor data with total-loss fault between 20 and 40 s. From Figure 22, we can easily see that the time range where the fault detection fails to refer to the time range where the deviation between the normal data (blue line) and the faulty data (red line) is very small. For example, at about 25 and 35 s, the actual yaw rate is already around 0, and the sensor reading of the total-loss fault is 0, so it is difficult to diagnose the fault in this state. Moreover, since the static threshold is used in this paper, it cannot change with different driving conditions, which provides an obstacle to the detection. It can be seen from Figure 23 that the residual values used to judge the IMU fault at 25 s and at 35 s had no warnings appear. Figure 21. The diagnostic result of condition monitoring of IMU sensor: the case is that the IMU sensor fails between 20 s and 40 s, but the diagnostic result shows the failure is only between 20 s and 34.4 s ("CD" is an abbreviation for "condition", "0" refers the normal state, "1" refers the faulty state, the blue line refers to the real state of the IMU sensor, the red line refers to the diagnostic state of the IMU sensor).  For the condition monitoring of the actuator, we conducted nine tests, and under three paths. Another one is shown in Figure 24, also from the project SmartLoad [12]. Each test lasts 200 s. To evaluate the performance, the fault signal is imported into the simulation. In these nine tests, only the completely damaged situation is in consideration, and the output torque is completely 0.
For performance evaluation, we still use the above accuracy formula. It can also be seen from Figure 25 that the method studied in this article also has a high accuracy for condition monitoring of the actuator.  However, there are also problems in the fault diagnosis of the actuator. For example, in Figure 26, the diagnosis result shows the fault 1.8 s slower than the actual fault occurs. We can also see in Figure 27 the residual that was used for diagnosis: the position where the alarm occurs is consistent with the position where the diagnosis result shows the fault, i.e., it is later than the actual situation. To find the reason, we need to pay attention to the actual torque. As can be seen from Figure 28, the actual torque of the motor is already very small in the three seconds before the fault, which leads to the actual state of the car and the ideal state status being not much different, and leads to subsequent misdiagnosis.
It can be seen from the above that there is a problem in the diagnosis of both sensors and actuators, i.e., if the state of the car itself is relatively low speed and has small steering angle when a fault occurs, then the method in this paper is likely to judge this state as a no-fault state.
All the results shown in this article are simulated results, i.e., the car model built in CarMaker based on the validated parameters of the real car is regarded as a virtual car, and its driving states in the virtual environment are regarded as the sensor measurement values. On the one hand, this is due to the lack of current real vehicle data; on the other hand, due to the limitations of experiments, it is impossible to inject faults into the motors of real vehicles. Therefore, the motor faults of real vehicles are actually adjusted to 0 artificially, which is different from that in the simulation. In order not to confuse readers further, there is no display of real vehicle data here. However, it will be written in the author's next article, which is aimed at the comparison and evaluation of different diagnostic methods, which will involve the verification of real vehicle data. Figure 26. Result of condition monitoring of steering motor 1. Diagnostic result of condition monitoring of the steering motor 1: the case is that the steering motor 1 fails at 123.5 s, but the diagnostic result shows the failure is at 125.3 s ("CD" is an abbreviation for "condition"; "0" refers the normal state; "1" refers the faulty state; the orange line refers to the real state of the steering motor 1; the purple line refers to the diagnostic state of the steering motor 1).

Conclusions
In this work, a model-based method has been developed for the holistic fault detection and diagnosis system to monitor the condition of sensors and actuators. The monitored sensors in this article are the left rear wheel-speed sensor, right rear wheel-speed sensor, steering-wheel angle sensor, steering-wheel torque sensor, yaw rate sensor, tie-rod force sensor, and the monitored actuators are two steering motors, and two driving motors that were equipped in the demonstration vehicle. The driving data will be produced by CarMaker, and the monitoring system model is built in Simulink. It can realize real-time monitoring by connecting with the car model in CarMaker (software in the loop), or obtain simulation data from CarMaker first, and then perform offline state detection in Simulink.
The basic idea of the fault detection method in this article is to generate the residuals as the symptoms through the mathematical models of the vehicle. After the sensor residuals are obtained, through the analysis of the changes in symptoms in different abnormal situations, the detection rules are summarized, and the status of each sensor is determined through a simple logical relationship. In addition, the results are used to correct the sensor data and ensure that the sensor values input to the subsequent system are fault-free. The difference between the target value and the corrected sensor value is used as the monitoring of the actuator, and it also determines the state of each actuator through a series of simple logic relationships. The binary logic rules used to detect states in this article are very simple and less time-consuming to use than other diagnostic methods, and this method is very effective for detecting abnormal and normal conditions of current sensors and actuators.
However, for the analysis of specific fault situations, such as what kind of fault occurred in the specific sensor, and how much torque loss the actuator produced, it cannot be effectively dealt with. In future research, the author will continue the current problem to evaluate and compare different fault-diagnosis methods. A systematic comparison and discussion of the diagnostic capabilities of different fault-diagnosis methods are carried out. In subsequent articles, complex scenarios, such as the simultaneous fault of multiple sensors, will also be investigated. These different fault conditions can first generate symptoms through the fault-symptom generation method described in this paper, and then use different fault-diagnosis methods to further analyze the complexity and concrete situation of the fault. In addition to this, the method in this article will continue to be used and validated with other project vehicles. The validation of the method in this paper is now limited to the simulation data. Due to the complexity of injecting faults into the motor in the real vehicle, there are few real vehicle experimental data, and the method of fault injection is also different to that in the simulation. Therefore, in this paper, it is just validated using the simulated data. Further research on this issue will also be carried out in the author's subsequent articles.