Abstract
The traditional fault detection system of complex electronic equipment based on image analysis theory only analyzes the image characteristics of complex electronic equipment for artificial intelligent fault diagnosis. It cannot deal with the system diagnosis problem of qualitative fault data and has the problems of low accuracy and long time consuming of fault detection. To address these problems, an artificial intelligent fault diagnosis system of complex electronic equipment based on BP neural network is designed in this paper. BP neural network model for artificial intelligent fault diagnosis of complex electronic equipment is built based on system overall structure. The structure of BP neural network and learning algorithm is determined according to the actual fault problem. Learning and training of BP neural network are carried out by using sample data of fault. Artificial intelligent fault diagnosis algorithm of complex electronic equipment based on BP neural network and qualitative fault data is used, which combines the BP neural network and qualitative fault data. The preprocessing method is applied to quantify the fault data. Fault diagnosis is achieved by BP neural network technology. The system database and the implementation process of the BP neural network are designed. Experimental results show that the designed system can significantly improve the accuracy of fault detection of complex electronic equipment, improve the effect of fault detection, and reduce the time consuming of fault detection.
Keywords
Introduction
In the process of long time storage and protection of large and complex equipment, the performance indexes of large and complex equipment will appear to be decayed with various factors, and there are various faults. Fast and accurate fault diagnosis is an important part of improving the combat effectiveness of complex electronic equipment. Some of the equipment is integrated system of light, machine and electricity. The relationship between the components and the subsystems is complex. The working state and the environment are varied, which results in the high nonlinearity and obvious characteristics of these fault data [1]. For example, failure data is difficult to be quantified, which is not conducive to quantitative processing. The occurrence of some faults is few and suddenly. The data collection is difficult and the size of sample data is small. Fault is affected by many factors. The data uncertainty is strong and the mapping relationship between fault location and fault localization does not have one-to-one correspondence. The traditional fault detection system of complex electronic equipment based on image analysis theory only analyzes the image characteristics of complex electronic equipment for artificial intelligent fault diagnosis. It cannot deal with the system diagnosis problem of qualitative fault data, which results in the problems of low accuracy and long time consuming of fault detection [2]. To address these problems, an artificial intelligent fault diagnosis system of complex electronic equipment based on BP neural network is designed in this paper. The designed system can improve the accuracy of fault detection with artificial intelligence and shorten the time consuming of fault detection.
Artificial intelligent fault diagnosis system of complex electronic equipment based on BP neural network
System structure
The overall structure of intelligent fault diagnosis system of complex electronic equipment is shown in Fig. 1. The detected object is the actual equipment and simulation equipment of a part of the equipment. The collected signal is sent to the main computer by serial communication. The functions of signal processing and fault diagnosis are implemented in computer software system. The software system consists of 4 functional modules, which are the user management module, the database module, the human-computer interaction module and the intelligent diagnosis module [3]. The core of the system is the intelligent diagnosis module based on BP neural network. In this paper, the intelligent fault diagnosis module based on BP neural network is implemented on the platform of VC++ 6.0 and the design of low level database with MicrosoftAccess2003.

Overall structure of intelligent fault diagnosis system of complex electronic equipment.
Based on the overall structure of system, a comprehensive analysis of the complex relationship between multiple fault causes and multiple fault symptoms for complex electronic equipment is carried out. Then BP neural network model for artificial intelligent fault diagnosis system of complex electronic equipment is built.
BP neural network
In theory, the three-layer BP neural network can approximate any continuous function with arbitrary precision when the number of neurons in the hidden layer is enough. The model is shown in Fig. 2.

BP neural network model of fault diagnosis.
x
i
is the input of the i
th
neuron in the input layer, which represents the i
th
fault symptom in the fault mode. y
i
is the output of the i
th
neuron in the output layer, which represents the i
th
fault cause in the fault mode.
The BP neural network method is to take the square sum of the difference of the actual output value and the desired value as the objective function of on the premise of the given output expectation [4]. The objective function is minimized by the adjustment of the weights and the thresholds. It mainly includes two parts: forward propagation and error reverse correction. Forward propagation means that the input of each layer of node only comes from the output of the previous layer of node. The output O1 of the neuron in the input layer is equal to the input X
i
. The output of a neuron in the hidden or output layer is givenby
The gradient descent method is used to solve the minimum value of the objective function, and the smoothing factor β is introduced to improve the convergence speed. Error back propagation is to adjust the connection weight of each node from the output layer along the gradient of the objective function according to output error, so that the objective function is gradually reduced to a certain threshold (set to 0.5 in this paper) or no longer to reduce [6]. The adjustment of network weight and node threshold formula is given by
In the software of the system, human-computer interaction is used to achieve the fault diagnosis of complex electronic equipment. The software includes the functions of adding the feature data of equipment samples, selecting feature data of equipment samples, building BP neural network and training network, saving successfully trained BP neural network, input fault data to be diagnosed [7], and fault diagnosis and output results with the trained BP neural network. Figure 3 shows the overall structure flow chart of the software system.

The overall structure flow chart of the software system.
Because different complex electronic equipment may has different characteristics and output information, that is, that is, different number of neurons in the input layer and output layers, the universality of software is considered in design, and the module of adding feature data is added. If other equipment needs to be diagnosed, special diagnostic data is added with this module, so that software can achieve fault diagnosis for multi-equipment [8]. The software has also designed the module of selecting sample feature data. The purpose is that the same type of equipment does not need to repeat adding the feature data in the fault diagnosis, and directly selects the existing feature data module. In addition, considering the parameters that need to be set up in training network, such as number of hidden layer neurons, learning efficiency, training times, and training objective may be different for different networks, some parameters of the system software can bemodified [9].
The flow chart of learning training and fault diagnosis of the BP neural network model is shown in Fig. 4. Firstly, the structure and learning algorithm of BP network are determined according to the actual problems, and then the network is trained by the sample data of several groups of fault symptoms and causes. The steps of training are as follows.
Network weights and node thresholds are initialized as a set of random numbers. Input P groups of training sample. Input a set of fault symptom sample According to BP network, the error of The training samples are selected in turn, and the above process [10] is carried out continuously, until the total error of P groups of samples meets the expected requirement.

BP neural network fault diagnosis system flow chart.

Training precision of BP network based on qualitative data.
The trained fault knowledge model is stored in the BP network knowledge base. When diagnosing, fault symptom vector is used as input of network. The output result of network after calculating is compared with network knowledge base to find out the fault knowledge model which is closest to the sample to be diagnosed. In this way, the fault diagnosis isrealized.
The artificial intelligent fault diagnosis algorithm of complex electronic equipment based on BP neural network and qualitative fault data is to quantify the qualitative description of the failure phenomenon by using a rough set based fault data preprocessing method [11]. Then, the BP neural network technology is used for fault diagnosis. The preprocessed fault data can effectively enhance the identification and reduce the fault detection time and training steps. The modeling of qualitative data is as follows.
The BP network is a multi-input single-output model, and the output range is [0,1]. However, each fault of the equipment may be mapped to many reasons, that is, the result of diagnosis is not unique, and it is necessary to determine the true cause of the fault by manual investigation. In order to apply to the BP network, the number of the fault phenomena is adjusted as follows.
The fault phenomena is numbered with 4-digit number and used as an input, and the input dimension is 1. There are many causes for the fault, while the BP output is single. So the cause of the fault is used as follows: the number of the causes of a fault phenomenon is taken as the output [12]. For example, if there are three causes of the 1101 fault, the output of the BP network is set to 3. And the number of fault causes will be represented by binary numbers.
From the collected data, the number of fault cause is up to six. As the number of causes may be increased, a binary code with more than three digits is used. On the one hand, it is for supplement of fault cause, and data change is simple [13]. On the other hand, because of the little difference between data, it is easier to use the normalized preprocessing, and meet the output requirements of BP model. Table 1 shows a 3-digit binary encoding table for the number of some fault causes. The diagnosis result is a single output of a three-dimensional row vector.
3-digit binary encoding table for the number of fault causes
3-digit binary encoding table for the number of fault causes
The simulation experiment is carried out by Matlab. The Matlab neural network toolbox NNET provides a rich neural network realization function, including graphical user interface function [14], neural network creation, training and simulation function, drawing function, and Simulink support. The implementation of BP neural network with Matlab is obtained by using the following functions.
Newff (.): BP neural network creation function.
Train (.): network training function.
Sim (.): use the network for simulation.
The setup network has three layers: the input layer, the output layer, and the hidden layer. The coding of the fault phenomenon of certain equipment is taken as the input, then the number of input layer nodes n = 1. The output is a three-dimensional row vector that characterizing the number of fault causes, so the number of output nodes is m = 3. The implicit layer is used to approximate any rational function [15]. The number of nodes l is determined by the empirical formula l = 2n + a or
The value of a: The minimum mean square error is usually set to 1e-8, and the number of training times is 1000. But through simulation, it is found that no matter what empirical formula is used and what value a is, the performance of the trained BP network cannot reach the expected 1e-8, and the training steps to achieve stability are within 500. The training precision is shown in Table 2.
Training precision
Since the actual precision of 1000 times of training is between 1e-2 and 1e-1, and more than 0.11 and less than 0.17, the middle value can be taken and the training precision is 0.14. The simulation results show that the precision is about 0.14 and the training step is relatively less when the stability is reached [16]. At this time l = 7, a = 5. Thus the number of hidden nodes can be determined to be 7.
The BP network training results obtained with qualitative data are shown in Fig. 4, in which the solid line indicates the target accuracy and the dotted line indicates the training precision.
The qualitative sample data is used to test network. The test results are 98 groups, of which 81 groups are normal output and 7 groups are not consistent with target output. The simulation accuracy is 82.7%, which basically meets the expected requirements of fault diagnosis. This method needs to complete the diagnosis task together with other diagnostic methods for the new faults and the faults which are non-existent in database. After the diagnosis is completed, the database is supplemented in a unified coding form [17], and the neural network is retrained.
Design of database
The database of the equipment intelligent fault diagnosis system consists of 9 tables, and the composition and functions are shown in Table 3.
Composition and function table of the system database
Composition and function table of the system database
For the table of FAULT_TB, the fields in the table include the serial number of the fault cause (ID), the serial number of the fault component (Device ID), the fault description (Fault DES), and the maintenance strategy (Maintain). The data types of each field are set to automatically numbered, digital, and text, and serial number of the fault cause is the primary key.
First, fault symptom and fault cause are set on the human-computer interaction interface of the system, including setting the number of neurons in the input layer and the output layer m and n and the names of the input and the output. The set information is saved into the variables and the database, and FAULT_TB and OMEN_TB tables. The number of neurons in the hidden layer p is set to
{…}
The steps of the implementation are as follows.
Define variables and connect the database [18]. Define dynamic array (for storage of connection weight, input value, and output value). The class CArray<TYPE provided by MFC, ARG_TYPE>provided by MFC is used to implements the operations of dynamic change of the array, addition and delete of array variables and data. Initialize the connection weights with a random number. Enter the sample learning cycle. The output error of a set of samples is calculated according to the formula in the paper and the weights are adjusted, then the sample of the next group is calculated until the learning of all the samples is completed. Calculate total error of output. If the error reaches the expected requirement, go to the step (5). Otherwise, the difference between this iteration and the previous iteration is calculated. If it is greater than a certain value [19], go to the step (3) for reiteration. Otherwise, go to the step (5). Finish the learning training and save the final data of connection weight into the database.
Experimental analysis
Experiments are carried out to verify the effectiveness of the fault diagnosis system. Taking a component of complex electronic equipment as an example, the fault symptom set of the component is {no voltage output, no steady voltage, no varying voltage, large output ripple, oscillation clutter}. The fault cause set is {protection circuit fault, isolation circuit fault, control circuit fault, voltage-stabilizing circuit fault}. Using the fault diagnosis module obtained in this paper, 20 groups of training samples are taken for network training. Some samples are shown in Table 4.
Part of training sample data
Part of training sample data
The obtained training error is shown in Fig. 6.

Artificial intelligence fault diagnosis system BP neural network sample training error.
From Fig. 6, it can be seen that, after inputting 20 samples, the BP network iterates 17 steps to achieve a total error threshold of 0.05, which has a faster convergence rate. The training results of connection weight of the hidden layer and the input layer are shown in Table 5.
BP network of artificial intelligence fault diagnosis system
From the analysis of Table 5, it can be obtained that, when the input is {no voltage output, large output ripple}, the diagnosis result is voltage-stabilizing circuit fault. Experimental data show that the BP network model realizes the fault pattern recognition and the learning function of fault knowledge. In addition, the more the training samples, the more comprehensive the fault pattern, the more reasonable the BP network model, the higher the accuracy of fault diagnosis.
The fault information of the related device can be extracted from the residual signal of the system when the artificial intelligent fault diagnosis of complex electronic equipment is carried out. Therefore, the main task of fault detection for complex electronic equipment is to obtain the residual signal from the system. For comparison between the designed system in this paper and traditional complex electronic equipment fault detection system based on image analysis theory, the time consuming of obtainment of residual signal in the process of artificial intelligent fault diagnosis is measured to verify the fault diagnosis rate of the designed system. Table 6 shows the time consuming of residual signal extraction of two systems.
Two kinds of system residual signal extraction time (s)
In Table 6, the time consuming of the residual signal obtained from the input layer, the hidden layer, and the output layer of 15 neurons in the complex electronic equipment is given. The time consuming of the proposed system is shortest. It can quickly make a different judgment on the residual signal in different neurons, so as to quickly and accurately respond to the fault cause of the electronic equipment [20–22]. Comparison results show that the response time is shorter and the fault judgment rate is faster for the proposed system.
The neural network used in the experiment is shown in Fig. 2. The proposed artificial intelligent fault diagnosis is applied in the radar horn control relay panel of some complex electronic equipment. Through the simulation of the relay panel circuit, various fault phenomena and fault types are analyzed. 10 types of faults are taken as the output mode of neural network. The input is the voltage of 5 key nodes of a circuit board. Therefore, the number of input neurons in the designed neural network is 5, the number of output neurons is 10, and the number of units in the hidden layer is 16. The input and output samples of the neuron are shown in Table 7.
Input and output sample
In Table 7, Y1 represents no fault, and Y2 to Y10 represents various fault phenomena. If Yn (n = 2,…, 10) fault occurs, output Yn = 1 (n = 2,…, 10), and the rest is 0. If no fault occurs, all outputs are 0, andso on.
After normalizing the data in Table 7, the neural network model of the proposed system is used for model training. The number of the hidden layers is set to 16. E < 0.02. Learning rate λ and β = 0.05. Momentum factor η, δ = 0.75, and α = 0.05. After 20413 times of training, the relationship between the average training error and the step is shown in Fig. 7. With the data in Table 7, the outputs of BP neural network are shown in Table 8.

The relationship between the average training error and the step length.
Output results of BP network
From Fig. 7, it can be known that, when the average error of training is required to be smaller, the longer the training time, the more the training steps and sometimes even not converging. When the requirement is met, the precision should be reduced to shorten the training time. According to the purpose of the project diagnosis and the function, E is set to 0.02 during the training.
The conversion rule of the output data of neural network to the fault: When the output maximum value Yn of a neural network is close to 1, and the other values are small, the system has no fault. From the analysis of Table 7, the correct rate of self-detection results of artificial intelligence fault diagnosis in this paper is 100%.
2 groups of actual diagnostic test data (shown in Table 9) is selected to verify the effectiveness of the proposed system.
2 groups of experimental data
2 groups of experimental data are input into the network model, and the output results of the BP network are shown in Table 10.
Output of the two groups of test data
From the above two groups of output results, according to conversion rule, it can be seen that the Y9 output of the first groups is the largest, which is close to 1. Therefore, it can be judged that the Y9 fault occurs (BG1 base and collector short-circuit), which proves that the artificial intelligent fault diagnosis of the proposed system is correct. The Y5 output of the second group is largest, which is close to 1, while the output of the other units is smaller, which is ignored. Therefore, it can be judged that the Y5 fault occurs (R4 open-circuit). The actual verification is R4 open-circuits, so the diagnosis result is correct. Experimental results show that the precise fault diagnosis effect of the proposed system is better for complex electronic equipment.
The fault diagnosis and processing of complex electronic equipment involves both quantitative data and qualitative data. In fault diagnosis of certain equipment, the BP network diagnosis based on quantitative data has high accuracy and reliability, but it cannot be applied to the fault diagnosis based on qualitative data of the equipment. In this paper, the fault phenomenon with qualitative description is quantified by data preprocessing method. An intelligent fault diagnosis method based on BP neural network is proposed in this paper. It solves the problem of equipment fault diagnosis with qualitative data well.
Fault diagnosis of complex electronic equipment is an important research area of BP neural network. Based on the research results of BP neural network, the artificial intelligent fault diagnosis system for complex electronic is proposed in this paper, which can improve the accuracy of fault diagnosis and shorten the time consuming of fault diagnosis.
