An adaptive threshold algorithm for sensor fault based on the grey theory

0 downloads 0 Views 487KB Size Report
sensor fault based on the grey theory. Lifeng Wu1,2,3, Beibei Yao1,2,3, Zhen Peng4 and Yong Guan1,2,3. Abstract. An appropriate threshold is the key factor in ...
Special Issue Article

An adaptive threshold algorithm for sensor fault based on the grey theory

Advances in Mechanical Engineering 2017, Vol. 9(2) 1–7 Ó The Author(s) 2017 DOI: 10.1177/1687814017693193 journals.sagepub.com/home/ade

Lifeng Wu1,2,3, Beibei Yao1,2,3, Zhen Peng4 and Yong Guan1,2,3

Abstract An appropriate threshold is the key factor in a diagnosis of fault. However, the traditional method of setting a fixed threshold does not take into consideration the influence of system status and noise interference, and it often leads to false alarms and missed detections of system fault. To improve the accuracy of fault diagnosis, we first obtained the residual signal based on the strong tracking filter method – cubature Kalman filtering. We then proposed an adaptive dynamic threshold adjustment algorithm based on the grey theory. In this method, the threshold value can be dynamically adjusted according to the real-time mean and variance of the residual. Finally, we performed a sensor fault experiment involving three sensors in different locations of a robot. The results demonstrate the feasibility of our proposed method. Keywords Sensor fault, strong tracking filter, cubature Kalman filtering, threshold

Date received: 4 October 2016; accepted: 19 January 2017 Academic Editor: James Lam

Introduction Sensors are being applied in a wide range of areas, both civil and military. The sensor is the most critical component in systems of measurement and control, but it is prone to failure, leading to system paralysis. Sensor fault diagnosis has attracted much attention in the past several decades.1–5 Methods of diagnosing fault can be divided into two categories: data-driven techniques and model-based techniques.6,7 The fault diagnosis method is data-driven. In this method, measurable data on the status of the equipment are first acquired. Effective feature information is then extracted through analysing the data. Finally, a judgement is made on whether a fault has occurred or not. In contrast to data-driven techniques, which require a great deal of data and are of low accuracy, fault diagnosis algorithms based on models are developed to monitor the consistency between the measured outputs of the sensors and the predicted outputs of the model. These methods require the building of an accurate mathematical model of the sensor based on control theory and statistical analysis,

which will yield a comparative analysis of the residual and the threshold to determine whether a fault has occurred. Therefore, the key to solving the problem is to set a reasonable threshold, as the threshold will directly affect the accuracy of fault diagnoses.8 If a threshold is set too high, the phenomenon of omissions could easily occur; if a threshold is set too low, the phenomenon of false alarms will occur.9

1

College of Information Engineering, Capital Normal University, Beijing, China 2 Beijing Engineering Research Center for Highly Reliable Embedded Systems, Capital Normal University, Beijing, China 3 Beijing Advanced Innovation Center for Imaging Technology, Capital Normal University, Beijing, China 4 Department of Information Management, Beijing Institute of Petrochemical Technology, Beijing, China Corresponding author: Yong Guan, College of Information Engineering, Capital Normal University, Beijing 100048, China. Email: [email protected]

Creative Commons CC-BY: This article is distributed under the terms of the Creative Commons Attribution 3.0 License (http://www.creativecommons.org/licenses/by/3.0/) which permits any use, reproduction and distribution of the work without further permission provided the original work is attributed as specified on the SAGE and Open Access pages (https://us.sagepub.com/en-us/nam/ open-access-at-sage).

2

Advances in Mechanical Engineering

Traditionally, a fixed threshold is carried out only according to experience, and various relevant factors are not taken into consideration, such as system status, noise and model uncertainty. Hence, the result will be false positives and false negatives. To solve this problem, many scholars have put forward the method of setting a dynamic threshold. Zhu et al.10 proposed a method of adjusting the bandwidth coefficient in the threshold by training the bandwidth coefficient and making the threshold adaptive. However, this method did not perform well in abrupt faults because it adjusted the coefficient according to the number of false positives in the process of training the bandwidth coefficient. Xie et al.11 set the threshold by adopting a multi-characteristic parameter method. This reduced the number of false positives in fault detection. However, the process of continuously updating multicharacteristic parameters often resulted in auditing delays because the value was too large, which is unsuitable for online fault detection. Clouse et al.12 adopted the method of neural networks to train both the threshold and the weight, which made the threshold more adaptive. This method has good adaptability and nonlinearity, and it can reduce the rate of false positives and false alarms in fault detection. However, this method requires a large amount of training data, and the calculations are complicated, so it is unsuitable for online fault detection. Youssef et al.13 developed an analytical model of fault detection that uses an optimization procedure to optimally set the fault detection threshold, which depends on the signal to noise ratio and the severity of the fault. The result showed that this optimized threshold led to higher efficiency in the detection of incipient faults in noisy environments. Unfortunately, this method is very complicated. Therefore, an online fault threshold adjustment algorithm based on grey theory is proposed in this article, where the mean of the residual and the variance are used as the parameters to dynamically adjust the threshold and update the threshold in real-time. We used three sensors in different locations of a robot for the experiment. The results show that the proposed method is effective at reducing the rate of false alarms and missing reports.

Obtaining residual signal based on a strong tracking filter – cubature Kalman filtering The sensor system can be described as follows xk = f (xk1 , uk1 ) + wk1

ð1Þ

yk = h(xk , uk ) + vk

ð2Þ

where xk 2 Rn 3 1 represents the state vector of the system; yk 2 Rm 3 1 represents the output vector of the

sensor; uk 2 Rl 3 1 is the control vector; wk and vk represent the process noise and measurement noise, respectively, and their mean is 0 and the covariance matrix is Rk and Qk , respectively. f (  ) and h(  ) are the system functions. First, strong tracking filtering14 is used, and a firstorder Taylor series is adopted to make the following linearization Ak =

∂f (xk , uk ) ∂xk

ð3Þ

Ck =

∂h(xk , uk ) ∂xk

ð4Þ

^xk + 1jk = Ak ^xkjk

ð5Þ

The time is updated

pk + 1jk = lk + 1 Ak Pkjk ATk

+ Qk

ð6Þ

Gain Hk + 1 = Pk + 1jk CkT + 1 (Ck + 1 Pk + 1jk CkT + 1 + Rk + 1 )1 ð7Þ The measurement is updated ^xk + 1jk + 1 = Ak + 1^xk + 1jk + Hk + 1 (yk + 1  Ck + 1^xk + 1jk ) ð8Þ Pk + 1jk + 1 = (I  Hk + 1 Ck + 1 )Pk + 1jk

ð9Þ

The fading factor lk + 1 can be acquired by the following method  lk + 1 = l0 =

l0 1

(l0  1) (l0 \1)

tr½Nk + 1  tr½Mk + 1 

ð10Þ ð11Þ

Nk + 1 = Vk + 1  bRk + 1  bCk + 1 Qk CkT + 1

ð12Þ

Mk + 1 = Ck + 1 Ak + 1 Pk + 1jk + 1 ATk + 1 CkT + 1 ( (k = 1) r1 r1T Vk + 1 = rVk + rk rkT (k.1) 1+r

ð13Þ ð14Þ

To reduce the linearity error caused by the first-order Taylor series in the strong tracking filtering method, we refer to the method of cubature Kalman filtering and use the three-degree spherical-radial cubature rule to approximate the nonlinear function, making the estimation more accurate. According to the cubature Kalman filtering algorithm,15 we choose 2n points of a volume set (ji , vi ) to deliver the nonlinear function, and we calculate the new volume point. Assume the state at time instance k. The statistical property is N (xk ; ^xk , Pk ). To improve the numerical stability in the cubature Kalman

Wu et al.

3

filtering algorithm, we make a Cholesky decomposition in Pk

An adaptive threshold algorithm based on the grey theory

Skjk = Cholesky(Pkjk )T

ð15Þ

The residual and mean of the ith sensor are E½ri  = mi and D½ri  = s2i , respectively. According to the Chebyshev inequality

ð16Þ

   s2 8e.0, P ri  mi   e  2i e

The point of the volume is xi, k + 1jk = Skjk ji + ^xkjk The point of the volume after the spread is ~xi, k + 1jk = f (xi, k + 1jk , uk ) + wk

ð17Þ

The time is updated ^xk + 1jk = pk + 1jk = m X

m 1X ~xi, k + 1jk + wk m i=1

1 lk + 1 m

ð18Þ

ð19Þ

~xi, k + 1jk ~xTi, k + 1jk  ^xk + 1jk ^xTk + 1jk + Rk

i=1

The point of the volume is constructed

pyy, k + 1jk =

ð29Þ

Given e = nsi , n.0. According to equation (29), for the fault threshold Tband i , Tband i 2 ½mi  nsi , mi + nsi , where n is the bandwidth coefficient. Based on the empirical data to select the bandwidth coefficient and determine the threshold Tband i range, the threshold is fixed. Considering the impact of real-time noise and interference, the residual mean and variance are updated in real-time, so the threshold of the realtime of the unknown disturbance has stronger robustness. Because of the noise and the model of a joint system with different uncertainties, each sensor should set a different threshold. To facilitate the calculation, the residual value is as follows

xi, k + 1jk + 1 = Sk + 1jk ji + ^xk + 1jk

ð20Þ

r(k) = jy1 (k)  ^y1 (k)j

~yi, k + 1jk = h(xi, k + 1jk + 1 ) + vk

ð21Þ

The mean value and variance are E½r(k) = m(k), D½r(k) = s2 (k), Tband 2 ½0, m + ns. Tband(k) can be defined as

m 1X ~yi, k + 1jk ~yTi, k + 1jk  ^yk + 1jk ^yTk + 1jk + Qk m i=1

Tband(k) = m(k) + n s(k)

ð22Þ m 1X ~xi, k + 1jk ~yTi, k + 1jk  ^xk + 1jk ^yTk + 1jk ð23Þ pxy, k + 1jk = m i=1

m(k) = ð24Þ s2 (k) =

The measurement is updated ^xk + 1jk + 1 = ^xk + 1jk + Hk + 1 (yk + 1  ^yk + 1jk )

ð25Þ

pk + 1jk + 1 = pk + 1jk  Hk + 1 pyy, k + 1jk HkT+ 1

ð26Þ

Let Nk + 1 = Vk + 1  bRk + 1  ½pxy, k + 1jk T ½pk + 1jk 1 Qk ½pk + 1jk T pxy, k + 1jk ð27Þ Mk + 1 = pyy, k + 1jk  Vk + 1 + Nk + 1 + (b  1)Rk + 1 ð28Þ Through the above calculation, we obtain the estimated output value. We then compare the estimated value and the actual output to acquire the residual signal r.

ð31Þ

where n is the bandwidth coefficient, and m(k) and s(k) represent the mean and variance of the residual, respectively, as follows

Gain Hk + 1 = pxy, k + 1jk p1 yy, k + 1jk

ð30Þ

(k  1)m(k  1) + ^r(k) k

 1 (k  1)s2 (k  1) + ðr(k)  ^r(k)Þ2 k

ð32Þ ð33Þ

Thus, we can obtain the threshold, which is updated in real-time. However, we still need to estimate the residual ^r(k). Therefore, assuming that the residual is r, the grey dynamic prediction model GM(1, 1) is used to build the model.16 The specific process is as follows: 1. Process the residual data and generate the original data sequence   r0 = r0 (1), r0 (2), . . . , r0 (k)

ð34Þ

Here, r0 (1) is r(k  4), r0 (2) is r(k  3) and r0 (k) is the mean of the residual r(k) in the k moment. To eliminate the randomness and volatility of the residual signal, we perform the preprocessing of r0

4

Advances in Mechanical Engineering

  r1 = r1 (1), r1 (2), . . . , r1 (k) P Here, r1 (k) = ki= 1 r0 (k) k = 1, 2, . . . , n

ð35Þ

Another type of output is constant; the model for this is shown as the following equation yk = A

2. Make a grey prediction according to the model GM(1, 1)

dr1 + ar1 = b dt

ð36Þ

In equation (34), a is the development of the series, and b is the internal control grey number ½a, bT = (BT B)1 BT S 2

ð37Þ 3

0:5(r1 (1) + r1 (2))1 0:5(r1 (2) + r1 (3))1 7 7 and S = And 5 ... 1 1 0:5(r (k  1) + r (k))1 (r0 (2), r0 (3), . . . , r0 (k))T . Obtain the predicted value of the residual at the k + 1 moment 6 B=6 4

b ^r (k + 1) = r (1)  (1  ea )eak a 0



0

ð38Þ

We can determine the estimated value ^r(k) at the k moment using the above-mentioned grey prediction method. When the residual exceeds the threshold that has been set, it can be considered a sensor fault.

Sensor fault type For instance, the fault conditions of the position sensor in a robot are as follows:17 1.

Abrupt faults. The output of the sensor can suddenly increase or decrease; the model for this condition is yk = ^yk + noise½k

2.

The third type of output is 0, indicating that the sensor is a complete failure: yk = 0.

Fault injection experiment In this article, to verify the effectiveness of the above three methods, we developed the dynamic and kinematic equations of the robot in MATLAB according to the robot model.18 More details about the construction and operation of the robot are given in the article.18 Based the robot simulator, three kinds of sensor faults are implemented in the robot from different locations. We then use the strong tracking filter to design the observer. Finally, the actual output signals are compared to obtain the residual signal. The experiment on abrupt faults. In accordance with the definition of a fault (an unpermitted deviation of the parameter of the system from the standard condition),19 sensor faults of 10% are implemented abruptly in the robot’s joint position after the seventh second of the simulation time. A 10% abrupt fault means that the deviation is 10%. The residual that is generated is used to detect faults employing the proposed adaptive threshold selection method and the fixed threshold selection method. As shown in Figure 1, at points A, B, C and D, if a constant threshold is used, we assume that the fault occurred because the residual is over the threshold. In fact, there is no fault. From Figure 1, at time = 7, it is clear that the difference between the residual and the adaptive threshold is greater than that between the residual and the fixed threshold. That is, the proposed method significantly enhanced the difference between the threshold and the residual and is a good predictor of the fault.

ð39Þ

The drift failure model is as follows yk = A + Bk + ^yk

ð40Þ

The experiment on drift fault detection. As shown in Figure 2, at points A and B, we assume that the fault occurred because the residual is over a fixed threshold. But this is

where A and B are unknown constants. 3. Complete failure. There are three kinds of output in the sensor when it becomes a complete failure. One type of output is a value that is the same as that in the previous moment; this state is called the jammed state and is shown as follows yk = ^yk

ð42Þ

ð41Þ

Figure 1. The fault detection of the abrupt fault is 10%.

Wu et al.

5 a false positive. At the time of t = 8, we inject the drift fault of 10% into the sensor. The adaptive threshold will become the same as the fixed threshold, and the fault can be judged. It is clear that the proposed method, in contrast to the fixed threshold method, can detect the drift fault and decrease the false-positive rate.

Figure 2. The fault detection of the drift fault is 10%.

Figure 3. The fault detection of complete failure.

Complete failure. Complete sensor failure is implemented in the robot’s joint position after the ninth second of the simulation time, and the sensor in the robot’s joint position is in the stuck state. Figure 3 shows that the generated residual is used to detect faults employing the proposed adaptive threshold selection method and the fixed threshold selection method. At point A, however, there will be a false alarm if a fixed threshold is used. From Figures 1–3, it is obvious that the proposed method can effectively diagnose faults with a higher accuracy and a lower false-positive rate compared with other methods.

Table 1. Statistics on the false alarm rate and missing report rate at different thresholds. Faulty sensor

Fault type and size

Threshold method

Missing report rate (%)

False alarm rate (%)

The first sensor

Complete failure

Adaptive threshold Fixed threshold

0 0 – 0.01 0.01 0 0 – 0 0 0 0 0 0 – 0.07 0.15 0 0 – 0 0 0 0 0 0 – 0.73 0.96 0 0 – 0 0 0 0

0.62 1.25 – 0.79 2.47 0.33 1.57 – 0.52 1.60 0.55 1.56 0.49 1.48 – 0.80 2.23 0.38 1.10 – 0.48 1.53 0.54 1.61 0.57 1.33 – 0.95 2.54 0.09 0.76 – 0.54 1.65 0.58 1.66

Drift failure 5% 10% Abrupt faults 5% 10% The second sensor

Complete failure Drift failure 5% 10% Abrupt faults 5% 10%

The third sensor

Complete failure Drift failure 5% 10% Abrupt faults 5% 10%

Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold Adaptive threshold Fixed threshold

6

Advances in Mechanical Engineering

To further determine the effectiveness of the proposed method, we conducted 200 fault injection experiments in three sensors. The results are shown in Table 1. We compared the use of the adaptive threshold selection method with the fixed threshold method in the robot’s sensor fault detection. The results are shown in Table 1. Employing two kinds of threshold selection methods in an experiment comparing the fault detection of a sensor in a robot’s joint position, the proposed method was shown to be capable of reducing the rate of false positives and of improving the accuracy of fault detection.

Conclusion We proposed an adaptive threshold selection method targeting the shortcomings of the current fixed threshold method in detecting faults. For this method, the influence on the residual signal was considered, and an adaptive threshold algorithm was designed. Through the detection of three types of faults by a sensor in a robot’s joint position, the experimental results showed the following: 1.

2.

3.

4.

Compared with fixed threshold methods, the proposed algorithm provided robust and efficient fault estimation for a sensor. The method put forward in this article can reduce the missing report rate and false alarm rate in fault detection. Judging from the 200 fault injection experiments in sensors, the missing report rate and the false alarm rate obtained using the proposed method are far lower than the rates of fixed threshold methods (see Table 1). The simulation results showed the performance of the proposed approach. However, the proposed adaptive threshold selection method was not applied to real robot sensors, which are more complex than those used in the experiment. Hence, the goal in a future study is to use this method on real sensor systems and to improve the method of detecting faults in actual operating conditions.

Declaration of conflicting interests The author(s) declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.

Funding The author(s) disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This research was supported by the National Natural Science Foundation of China (no. 61202027), the National

Key Technology R&D Project (no. 2012DFA11340), the Beijing Natural Science Foundation of China (no. 4122015), the Project on the Construction of Innovative Teams and Teacher Career Development for Universities and Colleges Under Beijing Municipality (no. IDHT20150507) and the Scientific Research Base Development Program of the Beijing Municipal Commission of Education (TJSHG201310028014).

References 1. Lo C, Lynch JP and Liu M. Distributed model-based nonlinear sensor fault diagnosis in wireless sensor networks. Mech Syst Signal Pr 2016; 66–67: 470–484. 2. Dey S, Mohon S, Pisu P, et al. Sensor fault detection, isolation, and estimation in lithium-ion batteries. IEEE T Contr Syst T 2016; 24: 2141–2149. 3. Yan R, Ma ZJ, Kokogiannakis G, et al. A sensor fault detection strategy for air handling units using cluster analysis. Automat Constr 2016; 70: 77–88. 4. Wang L, Wu L, Guan Y, et al. Online sensor fault detection based on an improved strong tracking filter. Sensors 2015; 15: 4578–4591. 5. Hou Y, Cheng Q, Qiu A, et al. A new method of sensor fault diagnosis for under-measurement system based on space geometry approach. Int J Control Autom 2015; 13: 39–44. 6. Wan Y, Keviczky T and Verhaegen M. Data-driven sensor fault estimation filter design with guaranteed stability. IFAC PapersOnLine 2015; 48: 982–987. 7. Macgregor J and Cinar A. Monitoring, fault diagnosis, fault-tolerant control and optimization: data driven methods. Comput Chem Eng 2012; 47: 111–120. 8. Nezhad MSF and Niaki STA. A heuristic threshold policy for fault detection and diagnosis in multivariate statistical quality control environments. Int J Adv Manuf Tech 2013; 67: 1231–1243. 9. Bondavalli A, Chiaradonna S and Di Giandomenico F. Threshold-based mechanisms to discriminate transient from intermittent faults. IEEE T Comput 2000; 49: 230–245. 10. Zhu H, Wang K and Chen Q. Adaptive thresholds for fault detection of liquid rocket engine in ground test. J Prop Tech 2000; 21: 1–4. 11. Xie G, Li J, Hu N, et al. Multi-feature adaptive threshold compositive decision-making algorithm for real-time fault detection of turbopump. China Mech Eng 2005; 16: 1184–1187. 12. Clouse RL, Kim S and Waldron MB. An adaptive threshold learning algorithm for classical conditioning. In: Proceedings of the annual international conference engineering in medicine & biology society, Chicago, IL, 30 October–2 November 1997, pp.1380–1382. New York: IEEE. 13. Youssef A, Delpha C and Diallo D. An optimal fault detection threshold for early detection using Kullback– Leibler Divergence for unknown distribution data. Signal Process 2016; 120: 266–279. 14. Chen M and Zhou D. An adaptive fault prediction method based on strong tracking filter. J Shanghai Marit Univ 2001; 22: 35–40. 15. Zhao Y. Performance evaluation of Cubature Kalman filter in a GPS/IMU tightly-coupled navigation system. Signal Process 2016; 119: 67–79.

Wu et al. 16. Tan X, Deng J, Pan H, et al. Grey system and grey data management in medicine. In: Proceedings of the grey systems and intelligent services (GSIS 2007), Nanjing, China, 18–20 November 2007, pp.163–166. New York: IEEE. 17. Kullaa J. Detection identification, and quantification of sensor fault in a sensor network. Mech Syst Signal Pr 2013; 40: 208–221.

7 18. Yoo SJ. Actuator fault detection and adaptive accommodation control of flexible-joint robots. IET Control Theory Appl 2012; 6: 1497–1507. 19. Schrick D. Remarks on terminology in the field of supervision, fault detection and diagnosis. In: Proceedings of the IFAC symposium on fault detection, supervision safety for technology process, Hull, 26–28 August 1997, pp.959–964.

Suggest Documents