Research on Fault Diagnosis Method Based on Rule Base Neural Network

The relationship between fault phenomenon and fault cause is always nonlinear, which influences the accuracy of fault location. And neural network is effective in dealing with nonlinear problem. In order to improve the efficiency of uncertain fault diagnosis based on neural network, a neural network fault diagnosis method based on rule base is put forward. At first, the structure of BP neural network is built and the learning rule is given. Then, the rule base is built by fuzzy theory. An improved fuzzy neural construction model is designed, in which the calculated methods of node function and membership function are also given. Simulation results confirm the effectiveness of this method.


Introduction
In recent years, with the increasing development of science technology and automation, weapon equipment systems have been updated constantly.The fault occurrence probability is higher with the development tendency of large scale, complexity, and nonlinearity.The complexity of weapon system and the nonlinearity between fault cause and fault phenomenon reduce the diagnosis sensitivity of weapon system and improve the error report ratio, which increase the difficulty of fault diagnosis [1][2][3][4].
The BP neural network is the most extensive used neural network model.It not only has strong self-learning ability and self-organization, but also can process nonlinear problem.So BP neural network has a great superiority in processing nonlinear fault.Reference [5] uses the method of [6] to improve the BP algorithm of three-layer perceptron and apply it to the fault diagnosis of steam turbine, which optimizes the network step by step and accelerates the convergence speed of the net by this method.Reference [7] applies BP neural network into the fault diagnosis of gear in vehicle transmissions.Reference [8] constructs the fault diagnosis method of solid rocket motor based on fuzzy neural network, which combines BP network and fuzzy inference.Reference [9] synthesizes rule base, Bayesian belief network, and neural network into integrated software while fault prognosis.Reference [10] promotes an intelligent fault diagnosis expert system based on rule base, which merges together with fuzzy theory and enhances the transparence of fault diagnosis.
While ensuring learning samples, traditional rule base relies on expert experience and knowledge mainly and manifests by IF-THEN formation.A formal produced rule can manifest the fault whose causality is distinct, but it cannot manifest the fault whose causality is not distinct and relationship between phenomenon and reason is nonlinear.Fuzzy theory has the ability to process unsure and inexact information well.So this paper combines fuzzy theory with neural network, applies fuzzy logic into the description of high-rise logic frame, and uses neural network to process data, which enhances the accuracy of fault ruling base and acquires exact training samples.The efficiency of fault diagnosis is improved by applying the method to fault diagnosis.

Problem Description
On the basis of known data and fault model, the neural network can acquire mapping relationship between data and fault model by the studying of samples.Neural network can acquire complete and precise message from the incomplete and unsafe ones and realize the analogue to human thinking model in aspect of signal processing and learning ability [9].
In the reality procedure, mean square error can be approximated by ():  () = ( − )  ( − ) . (1) Among these,  is weighted value  or biasing ,  is target output, and  is realistic output.
The essence of the neural network training process is an adjusting process of weights  and bias  constantly.In order to guarantee the convergence of nervous system, the steepest method is usually used to adjust the weights  and bias : where  is the number of iterations and  is velocity of learning.() is minimum or its value is small to a certain value  through continuous recursion and iteration.Due to the existence of the iterative process, the influence of original samples uncertainty to the final result of the fault diagnosis is enhanced.It also leads to the following problems in the process of application of neural network: (1) The difficulty of acquiring samples: neural network needs a lot of samples training before fault diagnosis, but the presence of sample cannot be ensured and the sample distribution whether equal or not cannot be judged because of the random.It can hardly guarantee the training effect and the accuracy.At the same time, in actual engineering equipment, abundant and distributed equally fault samples are difficult to acquire [11].
(2) The underutilization of experienced knowledge: in the territory of fault diagnosis, the using of experienced knowledge is important.Some faults can be found the fault reasons by experienced knowledge.But neural network acquires experienced knowledge from learning samples and this experienced knowledge has great boundedness.So, the learning method of neural network reduces the accuracy of fault diagnosis.
We can see that the accuracy of fault diagnosis has an intimate relationship with the quality of training sample.Under the condition of unsure message, the paper applies fuzzy theory into neural network to deal with the related fault better and acquire more typical samples, which makes advantages of known experienced knowledge to realize a precise location.Fuzzy theory is used to process unsure message to acquire a more objective fault rule base.Then the improved neural network is used to diagnose fault.The accuracy of fault diagnosis is improved.

The Design of BP Neural Network Fault Diagnosis Model Based on Rule-Learning
The general steps of fault diagnosis based on neural network include confirming network structure, then having learning training to network based on known fault phenomenon and reason, adjusting weight and threshold, and finally acquiring result of diagnosis using trained network and input fault phenomenon.So, the fault diagnosis method based on neural network can be divided into two main parts: BP neural network training and BP neural network fault diagnosis.
In order to improve the accuracy of fault diagnosis based on neural network, the belief rule base which is constructed by the fuzzy theory in the basis of existent experience knowledge is used to preprocess original samples before the neural network training.The processed samples are used to train the neural network.Finally, the trained neural network can be used to diagnose fault and obtain the fault diagnosis results.So the key to improve the neural network fault diagnosis is how to construct belief rule based on the fuzzy theory.

Structure of Classical Neural Network.
From the angle of mapping, the procedure of diagnosis can be seen as a mapping from fault eigenvectors set to fault set.So the fault diagnosis is to find the mapping relationship between fault sign and reason.The neural network is to construct the fault mapping relationship through neural network structure.Continuous function of random closed interval can be approximated by three-layer BP neural networks, which include input layer, hidden layer, and output layer.The hidden layer can contain one or more layers [12].The classical BP neural network's structure is shown in Figure 1.
and  are linking weighted matrices.Input layer mainly takes charge of receiving various fault messages, and every unit manifests a fault characteristic parameter.The main functions of hidden layer are learning the fault message of input layer and saving threshold and linking weighted value which make network approximation.Output layer mainly exports the result of diagnosis, which uses Sigmoid or hard-approximation function usually and the number of neurons is decided by the kinds of faults [13].
If  1 is  1 1 and  2 is  2 2 and so on and is    , then where    ∈   (  = 1, 2, . . .,   ) is the reference value ,   ( = 1, 2, . . ., ) is the result, the degree of confidence belonging to the output reference value   meets ∑  =1   ≤ 1, and  is the number of rules in rule base.
The activated weight of rule  is where   is the relative weight of rule ,    is the match degree of input  to reference value set   in rule ,   is the relative weight of  in rule ,   is the overall compatibility of input variable relative to the premise attribute  in rule , and   is the weight of rule .
If   > 0, the rule  is activated, otherwise not activated.
Because the belief degree, weight, promise attribute, and reference value are given by initial expert knowledge, the error is easy to be produced.So the generation processes of the rule base need to be optimized.The processes are as follows.
Step 1. Determine the rule belief degree, weight, premise attribute, and output result based on initial expert knowledge, and establish the initial belief rule base.
Step 2. Convert the input data into distributed form.
Step 3. Forward inference to get the simulation output based on the belief rule base and input data, and then calculate the error.
Step 4. If the error is within the allowable range, end the training optimization.Otherwise, turn to Step 5. training parameters, save the optimization results, update the belief rule base, and then turn to Step 3.

Structure of Improved Fuzzy Neural Network.
In order to take advantage of existing experienced knowledge, we use fuzzy logic to reform neural network.The construct fuzzy neural network is constructed according to expert language rule.A 4-layer fuzzy neural network is formed by input layer, fuzzy layer, rule layer, and output layer.The structure is shown in Figure 2. The description of every node's function is as follows.
(1) Input Layer.Input variable is original fault sign one, and the number of nodes is the number of sign variable.
(2) Fuzzy Layer.The number of nodes is the sum of all fuzzy intervals of sign variable.The number of fuzzy logic and initial membership functions is defined according to the distribution condition of every fuzzy variable and the significance of each fuzzy variable to system.Then the normalized difference variable is translated to many fuzzy sets.Then each neuron of every layer is correspondence to a fuzzy set.Its output manifests the membership to this fuzzy set.
(3) Rule Layer.Every node corresponds to a fuzzy control rule, the prerequisite of completing a fuzzy logic rule is matching operation, and the input is membership and the output is matching degree.
(4) Output Layer.According to the sum of value of fuzzy logic value and linking weight, the output is acquired.
There are three kinds of adjustable variables: one is the weighted coefficient of third and fourth layer, which manifests rule parameter; the second and third are mean value and standard deviation of the function.

Confirmation of Improved Neutral Network Training
Parameters.The training and learning of neural network are mainly adjustment of interlayer linking weighted value and the core and width of affiliate function.(1) Linking Weighted Value.Between fuzzy layer and rule layer, the value is 1 while linking and 0 while not linking.We only train the linking weighted value between rule layer and output layer.
(2) Confirmation of Affiliate Function.The input data need to be normalized difference because of the characteristic of neural network and the mainly transform function.While BP network is applied into solving problem, the condition of convergence slow or little always appears.A good way to normalize difference can have an improvement on the property of network.In this paper, fuzzy membership normalized difference is used.Because the relationship between fault and sign is fuzzy, whether fault exists does not have distinct bounds and the fault obeys the distribution of some membership function.In a word, the kind of membership we choose is as follows: the value of membership function increases in some method with the increase of independent variable.The expression is ( And ensured self-Cauchy membership function satisfies the above demand. (3) Learning Velocity (Step-Size)   .Set the initial value as 0.01, and it can be satisfied according to the following formula: (4) Momentum Factor .Set the initial value as 0.95, and it can be satisfied according to the following formula: (5) Error.It is a very small number and can be ascertained according to specific condition.Stop it when it does not converge until maximum number, which manifests that the property of convergence is bad or the maximum number of training processes is too small.

The Procedure of BP Neural Network Fault Diagnosis Based on Rule-Learning
Step 1. Classify samples into training samples and test (new) samples.
Step 2. Construct initial fuzzy neural network training system based on Section 3.4 and form improved fuzzy neural network diagnosis system after several training processes.
Step 3. Diagnosis is done by the test samples of trained BP neural network diagnosis system, and judge whether the fault is a new fault or not.A new sample is formed if it is a new fault.We train the improved BP neural network and realize the function of self-learning.

Sole Fault Simulation.
It is done through the experiment bench to sample and denoise the signal as shown in Figure 4.
The training samples are shown in Table 1 after analysing and drawing.  1 are used to train.The procedure is shown in Figure 5.
We can see from Figure 5 that the error request after 450 steps is good and the convergence effect is very good.
In order to test the effect of BP neural network fault diagnosis system after 16 samples training, we acquire 4 test samples in Table 2.The test results are shown in Table 3.
We can conclude from Table 3 that the outputs of 4 test samples coincide with expected value.The accuracy of model is tested.

Mixed Fault Simulation.
The mixed fault is common in the real fault.We set two manual mixed faults as in Table 4.
The samples of Table 4 cannot be distinguished by the BP neural network fault diagnosis system trained by Table 1.But it can acquire the result of Table 5 by the belief rule base of Figure 3.
We train the BP neural network again by using the data of Table 5 as a new training sample.Comparing the expected output and the actual output in Table 5, it can be found that the neural network trained by belief rule base has the diagnosis ability to these two kinds of mixed fault.

Conclusion
Because of the distribution of training sample, the veracity of training result of neural network is hard to ensure by only using neural network to diagnose fault.A neural network fault diagnosis based on rule base is promoted, which transfers expert's experience to rule by fuzzy process and then applies to neural network.This method ensures that the training sample can respond and the veracity of neural network fault diagnosis is improved.

Figure 1 :
Figure 1: The structure of BP neural network.
Denoising signal of imbalance model Denoising signal of misaligned model Denoising signal of looseness model Denoising signal of rub-impact model

Figure 4 :
Figure 4: Denoise effect on figure of sampling signal.

Table 1 :
Training samples table.