A sequential probability ratio test fault detection method for diesel-electric locomotive system
By combining the Kalman filter and the sequential probability ratio test method, the residual sequence of the diesel-electric locomotive system is analyzed, the decision function and rules are constructed, and the problems of high false alarm rate and slow detection speed in fault detection of the diesel-electric locomotive system are solved. problem, achieving low false alarm rate and rapid fault detection.
Patent Information
- Application Number
- CN202110932409.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-13
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-08-13
AI Technical Summary
In the existing technology, diesel-electric locomotive system fault detection methods have the problems of high false alarm rate and slow detection speed, especially when external interference and faults are involved, it is difficult to achieve accurate online detection.
Combining the Kalman filter and the sequential probability ratio test method, by constructing a diesel-electric locomotive system model, using the delta operator to discretize the state equation, generate a residual sequence, analyze the statistical characteristics through the sequential probability ratio test, and construct a decision function and decision rules to realize online fault detection of diesel-electric locomotive systems.
It achieves a low false alarm rate and the ability to quickly detect faults, and can conduct systematic online fault detection with the smallest sample size and the shortest time, with high timeliness and novelty.
Smart Images

Figure CN113761650B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fault detection, and in particular to a sequential probability ratio test fault detection method for a diesel-electric locomotive system. Background Art
[0002] In recent years, with the increasing requirements for reliability and safety of chemical production processes, fault detection technology has received extensive attention from scholars and has achieved unprecedented development. Diesel power systems are systems powered by diesel engines and generators, and are widely used in locomotive systems. Sudden faults can cause unexpected shutdowns or loss of control of locomotives, or even fatal safety accidents. Therefore, the detection of incipient faults is of great significance, and it has attracted great attention from academia and industry in the past few decades.
[0003] During the working process of the machine, failures will inevitably occur, which may lead to downtime or accidents. Diagnosing faults in advance can ensure the reliable operation of the machine. So far, a large number of literatures have proposed many fault diagnosis methods. Traditional advanced signal processing algorithms are used to identify the characteristics of faults, and fault diagnosis experts manually identify faults afterwards, which is time-consuming and laborious. With the introduction of machine learning and deep learning into the field of fault diagnosis, many intelligent methods have emerged to replace experts to automatically identify faults. Among statistical diagnostic algorithms, sequential probability ratio test is a commonly used method that can evaluate the functions of complex systems in real time. Sequential probability ratio test is different from traditional hypothesis testing. In traditional hypothesis testing, data collection is usually carried out without analysis, and analysis is performed after data collection is completed to draw conclusions. Sequential probability ratio test is to detect and analyze data immediately after data collection. The advantage of this ability is that the statistical changes of the hypothesis can be tested with the least time and the smallest sample size. Summary of the invention
[0004] Purpose of the invention: In view of the problems existing in the prior art, the present invention provides a sequential probability ratio test fault detection method for a diesel-electric locomotive system, which can accurately detect faults online, combines the Kalman filter with the sequential probability ratio test, and monitors the operation process of the diesel-electric locomotive system, with a low false alarm rate and a fast detection speed.
[0005] Technical solution: The present invention provides a sequential probability ratio test fault detection method for a diesel-electric locomotive system, comprising the following steps:
[0006] Step 1: According to the diesel-electric locomotive principle, a diesel-electric locomotive system model is constructed, and then the model is discretized using the delta operator to obtain the standard form of discrete state equation;
[0007] Step 2: Based on the state equation in step 1, a general form of the diesel-electric locomotive system model is given when external disturbances and actuator failures are present;
[0008] Step 3: It is proposed to use the Kalman filter as the residual signal generator, give the system initial value required by the filter, and obtain the output value predicted by the system model;
[0009] Step 4: Compare the predicted value obtained in step 3 with the actual value to generate the residual sequence r k ;
[0010] Step 5: Introduce the sequential probability ratio test method, analyze the statistical characteristics of the residual signal, and construct the decision function and decision rules;
[0011] Step 6: According to the decision function and decision rules in step 5, use the operation process of the monitoring system to perform fault detection.
[0012] Furthermore, the diesel-electric locomotive system mainly includes two electronic circuit subsystems and one mechanical subsystem, and determines the state variables: x1 = ω0, x2 = i a ,x3=i f , then the diesel-electric locomotive system model is:
[0013]
[0014] Where u(t) = KK pot ω r , Kpot is the adjustable gain, ω0 is the motor speed, i a is the armature circuit current, i f is the magnetic field loop current, J and b are two different loads in the motor, and K t ,K b is the feedback gain, K, K g ,K m is the amplifier gain, L a is the armature circuit inductance, L f is the magnetic field loop inductance, L t =L a +L g , R a is the armature circuit resistance, R f is the magnetic field loop resistance, R t =R a +R g , L g is the internal inductance of the generator, R g is the internal resistance of the generator.
[0015] Furthermore, the diesel-electric locomotive system model is discretized using a delta operator to obtain a standard form of discrete state equation:
[0016] δx k =A δ x k +B δ u k (2)
[0017] in, T is the sampling period, A z =e At ,
[0018] Furthermore, the general form of the diesel-electric locomotive system model when it contains external interference and faults is:
[0019]
[0020] Among them, C is the observation matrix, ω k is the process error, ν k is the observation error, f k For fault items.
[0021] Furthermore, the Kalman filter in step 3 is:
[0022]
[0023] in, T is the sampling period, A z =e At ,
[0024] is the prior estimate of the state variable, P k - is the prior estimate of the error covariance matrix, Kk is the Kalman gain matrix, is the posterior estimate of the state variable, P k is the posterior estimate of the error covariance matrix; ω k is the process error, ν k is the observation error;
[0025] Assume that the noise of system (4) is Gaussian white noise with a mean of 0 and is uncorrelated with each other, that is, the process noise and observation noise satisfy equation (5), ω k and ν k are independent of each other, with covariances Q and R respectively,
[0026]
[0027] Given the initial value of the filter:
[0028] P0 = val(x0)
[0029] wherein, is the initial state of the system, P0 is the initial covariance matrix, and at this time, the posteriori estimate value can be obtained
[0030] Furthermore, the residual sequence in step 4 is as follows:
[0031]
[0032] wherein, r k is used as the residual sequence for fault detection of the system.
[0033] Furthermore, the specific operation of introducing the sequential probability ratio test method to construct the decision function and decision rule in step 5 is as follows:
[0034] Step 5.1: Define the joint density distribution of r k as:
[0035]
[0036] wherein, f(r / H) represents the conditional probability distribution, j = {0, 1}, H0 represents the null hypothesis, and H1 represents the alternative hypothesis;
[0037] Step 5.2: Assume that the statistical characteristics of the measured residual sequence r k are as follows:
[0038] In the normal working state: H0 ~ N(0, ν), in the fault state: H1 ~ N(b, ν);
[0039] wherein, both the null hypothesis H0 and the alternative hypothesis H1 follow the normal distribution, the expected value of the null hypothesis is 0, the variance is ν, the expected value of the alternative hypothesis is b, and the variance is ν;
[0040] Step 5.3: The conditional probability density function can be obtained:
[0041]
[0042] The sequential probability ratio function in recursive form is:
[0043]
[0044] Furthermore, the decision logic for judging whether the system has a fault in step 6 is as follows:
[0045] Specify constants A and B as two boundary constants, and A < B. Their magnitudes are determined by the preset false alarm probability α and missed alarm probability β of the system. α, β and A, B have the following relationship:
[0046]
[0047] Assume r i is the residual sequence r k The i-th observation value of i (r i ), the fault detection process becomes:
[0048] (1)λ i (r i )>B, accept H1, failure occurs;
[0049] (2)A≤λ i (r i )≤B, continue to collect data;
[0050] (3)λ i (r i )>A, accept H0,λ i (r i ) is set to zero and resampled.
[0051] Beneficial effects:
[0052] 1. The present invention can accurately detect faults online, obtain model prediction output values, collect data and perform data analysis at the same time, require a small amount of samples and reduce online calculation time, and meet the requirements of online fault detection of the system. Compared with other detection methods, the fault detection method proposed by the present invention is more timely.
[0053] 2. From the current literature, it can be seen that no scholar has adopted the sequential probability ratio test fault detection method based on the Kalman filter to realize fault detection of systems containing faults, external interference and diesel-electric locomotives at the same time. Therefore, the fault detection method proposed in the present invention is relatively novel and has reference value. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 This is a schematic diagram of the structure of a diesel-electric locomotive system according to an embodiment of the present invention;
[0055] Figure 2 Schematic diagram of the estimated value and the true value of the speed ω0 of the motor according to an embodiment of the present invention;
[0056] Figure 3 is the armature circuit current i in the embodiment of the present invention a Schematic diagram of estimated value and true value;
[0057] Figure 4 is the magnetic field loop current i in the embodiment of the present invention f Schematic diagram of estimated value and true value;
[0058] Figure 5Schematic diagram of a fault signal f(k) according to an embodiment of the present invention;
[0059] Figure 6 Schematic diagram of the estimated value and the true value of the speed ω0 of the motor under a fault state in an embodiment of the present invention;
[0060] Figure 7 is the armature circuit current i under the fault state of the embodiment of the present invention a Schematic diagram of estimated value and true value;
[0061] Figure 8 is the magnetic field loop current i under the fault state of the embodiment of the present invention f Schematic diagram of estimated value and true value;
[0062] Fig. 9 This is a diagram of fault detection results according to an embodiment of the present invention. DETAILED DESCRIPTION
[0063] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0064] The present invention takes a diesel-electric locomotive system as an implementation object, and proposes a diesel-electric locomotive system sequential probability ratio test fault detection method based on a Kalman filter for faults occurring in the system. The method theoretically realizes online fault detection of the system.
[0065] The Kalman filter-based diesel-electric locomotive system sequential probability ratio test fault detection method of the present invention comprises the following steps:
[0066] Step 1: According to the diesel-electric locomotive principle and diesel-electric locomotive system model, establish its state relationship and convert it into the standard form of state equation. The specific contents are as follows:
[0067] The basic structure diagram of a diesel-electric locomotive is as follows Figure 1 As shown. In the diesel-electric locomotive system, the efficiency of the diesel engine is very sensitive to the speed of the motor, so it is necessary to design a speed control system for the motor that can adjust the speed and stabilize it at a specified speed. Each axle of the locomotive is equipped with a DC motor to drive the locomotive forward. It mainly consists of three main subsystems, two electronic circuit subsystems and one mechanical subsystem. Therefore, this embodiment determines the state variables from the related variables of the three subsystems, and the selected scheme is: x1=ω0,x2=i a ,x3=i f According to the above state variable selection scheme, the state equation of the system is:
[0068]
[0069] Where u(t) = KK pot ω r , Kpot is the adjustable gain, ω0 is the motor speed, i a is the armature circuit current, i f is the magnetic field loop current, J and b are two different loads in the motor, and K t ,K b is the feedback gain, K, K g ,K m is the amplifier gain, L a is the armature circuit inductance, L f is the magnetic field loop inductance, L t =L a +L g , R a is the armature circuit resistance, R f is the magnetic field loop resistance, R t =R a +R g , L g is the internal inductance of the generator, R g is the internal resistance of the generator. In addition, the symbols in the diesel-electric locomotive model in the embodiment of the present invention are described in Table 1.
[0070] Table 1. Symbols for diesel-electric locomotive models
[0071] symbol illustrate J, b load <![CDATA[K t ,K b ]]> Feedback gain <![CDATA[K,K g ,K m ]]> Amplifier Gain <![CDATA[L a ]]> Armature circuit inductance <![CDATA[L f ]]> Magnetic field loop inductance <![CDATA[L t ]]> <![CDATA[L a +L g ]]> <![CDATA[R a ]]> Armature circuit resistance <![CDATA[R f ]]> Magnetic field loop resistance <![CDATA[R t ]]> <![CDATA[R a +R g ]]>
[0072] Written in matrix form, the system state equation (1) can be written as:
[0073]
[0074] In the formula,
[0075]
[0076] By using the traditional Z transform method to discretize formula (2), we can get the Z transform model as follows:
[0077] x k+1 =A z x k +B z u k (3)
[0078] Among them, A z =e At ,
[0079] The delta operator method is used to discretize the system described by formula (3) using the delta operator, and the delta operator system model is obtained as follows:
[0080] δx k =A δ x k +B δ u k (4)
[0081] in, T is the sampling period.
[0082] Step 2: Based on the delta operator model in step 1, the general form of the diesel-electric locomotive system model with external interference and faults is given as:
[0083]
[0084] Among them, C is the observation matrix, ω k is the process error, ν k is the observation error, f k For fault items.
[0085] In this embodiment, typical values of relevant parameters of the diesel-electric locomotive are shown in Table 2.
[0086] Table 2. Typical values of diesel-electric locomotive parameters
[0087] <![CDATA[K m ]]> <![CDATA[K g ]]> <![CDATA[K b ]]> J b <![CDATA[L a ]]> <![CDATA[R a ]]> <![CDATA[R f ]]> <![CDATA[L f ]]> <![CDATA[K t ]]> <![CDATA[K pot ]]> <![CDATA[L g ]]> <![CDATA[R g ]]> 10 100 0.62 1 1 0.2 1 1 0.1 1 1 0.1 1
[0088] The relevant parameters of the diesel-electric locomotive system are the typical values shown in Table 2. According to relevant data, the system gain matrix is K = [-0.0041 0.0035 4.0333] to achieve the best control effect, and the system delta operator model parameters are:
[0089]
[0090] Step 3: It is proposed to use the Kalman filter as the residual signal generator, give the system initial value required by the filter, and obtain the output value predicted by the system model. The Kalman filter is:
[0091]
[0092] in, is the prior estimate of the state variable, P k - is the prior estimate of the error covariance matrix, Kk is the Kalman gain matrix, is the posterior estimate of the state variable, P k is the posterior estimate of the error covariance matrix.
[0093] Assume that the noise of system (5) is Gaussian white noise with a mean of 0 and is uncorrelated with each other, that is, the process noise and observation noise satisfy equation (7), ωk and ν k are independent of each other, and their covariances are Q and R respectively.
[0094]
[0095] Given the initial value of the filter:
[0096] P0=val(x0)
[0097] in, is the initial state of the system, P0 is the initial covariance matrix, and the posterior estimate can be obtained at this time
[0098] In this embodiment, it is assumed that both the process noise and the observation noise are Gaussian white noises that obey a normal distribution, and the values of the error covariances Q and R are as follows:
[0099]
[0100] Then the Kalman filter can filter the system. Using matlab simulation, the simulation results are as follows Figure 2 , Figure 3 , Figure 4 As shown. Figure 2 , Figure 3 , Figure 4 It can be seen from the simulation results that both the system's prior estimate and the system's measured value will always have a large deviation from the true value at certain moments, but the Kalman filter's estimate is always close to the system's true value, successfully realizing the functions of filtering and interference reduction, thereby obtaining a relatively accurate a posteriori estimate.
[0101] Step 4: Compare the true value of the system with the posterior estimate of the Kalman filter to obtain the residual sequence for fault detection. The residual can be obtained in the following way:
[0102]
[0103] Among them, r k As a residual sequence, it is used for system fault detection.
[0104] Step 5: Introduce the sequential probability ratio test method, analyze the statistical characteristics of the residual signal, and construct the decision function and decision rule. The fault detection method is:
[0105] Definition k The joint density distribution of is:
[0106]
[0107] Among them, f(r / H) represents the conditional probability distribution, j = {0, 1}, H0 represents the null hypothesis, and H1 represents the alternative hypothesis.
[0108] Suppose the residual sequence r of the measurement k has the following statistical characteristics:
[0109] Under normal operating conditions: H0 ~ N(0, ν), under fault conditions: H1 ~ N(b, ν).
[0110] Among them, both the null hypothesis H0 and the alternative hypothesis H1 follow a normal distribution. The expected value of the null hypothesis is 0, the variance is ν, the expected value of the alternative hypothesis is b, and the variance is ν.
[0111] The conditional probability density function can be obtained:
[0112]
[0113] The sequential probability ratio function in recursive form is:
[0114]
[0115] Step 6: According to the decision function and decision rule in Step 5, utilize the operation process of the monitoring system to conduct fault detection. The decision logic for judging whether the system has a fault is as follows:
[0116] Specify constants A and B as two boundary constants, and A < B. Their magnitudes are determined by the pre-given system false alarm probability α and missed alarm probability β. The relationships between α, β and A, B are as follows:
[0117]
[0118] Let r i be the i-th observed value of the sub-sample, and calculate λ i (r i ). Then the fault detection process becomes:
[0119] (1) λ i (r i ) > B, accept H1, and a fault occurs.
[0120] (2) A ≤ λ i (r i ) ≤ B, continue to collect data.
[0121] (3) λ i (r i ) > A, accept H0, set λ i (r i ) to zero, and re-sample.
[0122] In this embodiment, the false alarm probability α is taken as 0.001, and the false alarm probability β is taken as 0.001. The boundaries A and B can be obtained as follows:
[0123]
[0124] The given fault sequence f(k) is as follows:
[0125]
[0126] Where x(n) is a set of random sequences, and 0≤x(n)≤1, n=1,2,3,… After adding this fault to the system, the state variable values of the system will drift, such as Figure 6 , Figure 7 , Figure 8 As shown. In both cases of fault and no fault, λ i (r i )Response status is as follows Fig. 9 As shown in the simulation results, it can be seen that when k=50, the fault is detected.
[0127] It can be seen from the simulation results that, for diesel-electric locomotive fault detection, the fault detection method designed in the present invention can detect whether a system fault occurs online and in a timely manner, and has important practical reference value.
[0128] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for sequential probability ratio test fault detection of a diesel-electric locomotive system, characterized in that: It includes the following steps: Step 1: According to the principle of diesel-electric locomotive, construct a system model of the diesel-electric locomotive, and then discretize the model using the delta operator to obtain a discrete state equation in standard form; The diesel-electric locomotive system mainly includes two electronic circuit subsystems and one mechanical subsystem. The state variables are determined as follows: x1 = ω0, x2 = i a ,x3=i f , then the diesel-electric locomotive system model is: Where u(t) = KK pot ω r , K pot is the adjustable gain, ω0 is the motor speed, i a is the armature circuit current, i f is the magnetic field loop current, J and b are two different loads in the motor, and K t ,K b is the feedback gain, K, K g ,K m is the amplifier gain, L a is the armature circuit inductance, L f is the magnetic field loop inductance, L t =L a +L g , R a is the armature circuit resistance, R f is the magnetic field loop resistance, R t =R a +R g , L g is the internal inductance of the generator, R g is the internal resistance of the generator; Step 2: Based on the state equation in Step 1, give the general form of the diesel-electric locomotive system model when there are external disturbances and actuator faults; Step 3: Propose to use a Kalman filter as a residual signal generator, give the initial system values required by the filter, and obtain the predicted output value of the system model; The Kalman filter in Step 3 is: in, T is the sampling period, A z =e At , C is the observation matrix, is the prior estimate of the state variable, is the prior estimate of the error covariance matrix, Kk is the Kalman gain matrix, is the posterior estimate of the state variable, P k is the posterior estimate of the error covariance matrix; ω k is the process error, ν k is the observation error; Assume that the noise of system (4) is Gaussian white noise with a mean of 0 and is uncorrelated with each other, that is, the process noise and observation noise satisfy equation (5), ω k and ν k are independent of each other, with covariances Q and R respectively, Given the initial values of the filter: in, is the initial state of the system, P0 is the initial covariance matrix, and the posterior estimate can be obtained at this time Step 4: Compare the predicted value obtained in step 3 with the actual value to generate the residual sequence r k ; Step 5: Introduce the sequential probability ratio test method, analyze the statistical characteristics of the residual signal, and construct a decision function and decision rules; The specific operations for constructing the decision function and decision rules by introducing the sequential probability ratio test method in Step 5 are as follows: Step 5.1: Define r k The joint density distribution of is: Among them, f(r / H) represents the conditional probability distribution, j = {0,1}, H0 represents the null hypothesis, and H1 represents the alternative hypothesis; Step 5.2: Assume that the measured residual sequence r k The statistical characteristics of are as follows: Under normal operating conditions: H0 ~ N(0,ν), under fault conditions: H1 ~ N(b,ν); Among them, both the null hypothesis H0 and the alternative hypothesis H1 follow a normal distribution. The expected value of the null hypothesis is 0, the variance is ν, the expected value of the alternative hypothesis is b, and the variance is ν; Step 5.3: The conditional probability density function can be obtained: Step 5.4: The sequential probability ratio function in recursive form is: Step 6: According to the decision function and decision rules in Step 5, use the monitoring system's operation process to perform fault detection; The decision logic for determining whether the system has a fault in Step 6 is as follows: Specify constants A and B as two boundary constants, and A < B. Determine their magnitudes based on the pre-given system false alarm probability α and missed alarm probability β. α, β and A, B have the following relationships: Assume r i is the residual sequence r k The i-th observation value of i (r i ), the fault detection process becomes: (1)λ i (r i )>B, accept H1, failure occurs; (2)A≤λ i (r i )≤B, continue to collect data; (3)λ i (r i )>A, accept H0,λ i (r i ) is set to zero and resampled.
2. The method for sequential probability ratio test fault detection of diesel-electric locomotive system according to claim 1, characterized in that: The discrete state equation in standard form obtained by discretizing the diesel-electric locomotive system model using the delta operator is: δx k =A δ x k +B δ u k (2)。 3. The method for sequential probability ratio test fault detection of diesel-electric locomotive system according to claim 2, characterized in that: The general form of the diesel-electric locomotive system model when there are external disturbances and faults is: Among them, f k For fault items.
4. The method for sequential probability ratio test fault detection of diesel-electric locomotive system according to claim 1, characterized in that: The residual sequence in Step 4 is: Among them, r k As a residual sequence, it is used for system fault detection.
