Abstract
Aiming at the inherent defects of BP neural network in the field of rolling bearing fault diagnosis, based on the optimization of particle swarm optimization algorithm, this paper uses a variety of optimization strategies to optimize the particle swarm optimization algorithm, and then uses the optimized particle swarm optimization algorithm to optimize the BP neural network. Therefore, a new fault diagnosis method (Dual Strategy Particle Swarm Optimization BP neural network, DSPSOBP) is proposed. DSPSOBP fault diagnosis method is mainly divided into two steps. The first step is EMD decomposition of vibration signal, and the second step is to classify rolling bearing faults by using BP neural network optimized by Double Strategy Particle Swarm Optimization algorithm. Experiments show that DSPSOBP has stronger advantages than BP neural network basic fault diagnosis model.
Introduction
The intelligent diagnosis method based on neural network refers to the use of neural network as the fault diagnosis method of equipment, using the fault tolerance and nonlinear mapping of neural network to learn the nonlinear relationship of equipment faults, establish a diagnosis model for equipment failure, and realize accurate diagnosis of equipment failure. Most of its research results are about pattern recognition, but a small number of them are biased towards failure prediction. The more basic neural networks mainly include BP (Back Propagation) neural network, RBF (Radical Basis Function) network, etc. Among them, BP neural network is a network that can perform “feedforward”. In addition to using the basic network structure for forward propagation, the most The outstanding feature is the ability to propagate errors backwards. Because of this feature, the BP neural network can be unique in the neural network family. The BP neural network has a strong ability to learn simple patterns and has a low storage cost. Due to the existence of these two characteristics, BP neural network can have a place in the field of fault diagnosis.It is proposed to use BP neural network for fault diagnosis of crusher. Lian Cheng et al. proposed to use BP neural network for fault diagnosis of crusher [1]. But in the field of fault diagnosis, it is more applied in the field of bearing fault diagnosis. Li Jet al. proposed a BP neural network method when solving the problem of rolling bearing fault diagnosis [2]. Y Sun et al. proposed a method of combining principal component analysis with BP neural network for bearing fault diagnosis [3]. Lin Shuiquan et al. proposed a time-domain fault diagnosis method. And then the result of rolling bearing fault classification is obtained through BP neural network [4]. N Zhang et al. proposed using BP neural network as fault classifier [5].
With the improvement of accuracy requirements for fault diagnosis, the basic BP neural network fault diagnosis model can no longer fully meet the requirements of equipment fault diagnosis due to the shortcomings of BP neural network such as being easily trapped in local minimums and relatively slow convergence speed. In order to solve the problems existing in the BP neural network and improve the accuracy of the algorithm to solve the fault diagnosis problem, the research direction has begun to change, and it is developing in the direction of seeking to integrate with other algorithms. Qian Zhiyuan proposed to optimize the fault diagnosis method based on BP neural network through genetic algorithm, which provides a new method and idea for solving the problem of fault diagnosis [6]. Wen Zhou et al. proposed a sliding bearing fault diagnosis method using the Mind Evolutionary Algorithm (MEA) to optimize the BP neural network [9]. M Xiao et al. Proposed to optimize BP neural network with beetle algorithm [10].
When the combination of a single algorithm can not produce good results, someone proposed to further improve the optimization algorithm and apply it to the field of bearing fault diagnosis, so as to further improve the performance of BP neural network in the field of bearing fault diagnosis. Guo Wenqiang et al. proposed a neural network diagnosis method combining PSO and GSA [10]. Feng Yufang et al. constructed a rolling bearing fault diagnosis model (IQABC-BP) that combines improved quantum bee colony algorithm and BP neural network [11]. Wang Yuwei et al. proposed a fault identification method using wavelet packet and improved genetic algorithm to jointly optimize neural network [12]. Ma Chao et al. proposed a combination of resampling method and CSBP neural network method to diagnose faults in rolling bearings [13]. Cui Pengyu et al. proposed a method to improve parameters using an improved bat algorithm, and constructed a new fault diagnosis system [14]. Zhang Ning et al. proposed a fault diagnosis method (ADAFSA-BP) using an improved fish school algorithm to optimize neural networks [15]. Y Zhang et al. Proposed a bearing fault diagnosis method based on BP-MLL [17]. Liu Junfeng et al. Proposed the method of combining FSC-MPE with BP neural network [18]. Xu Zifei et al. Proposed the diagnosis method of WOA-IVMD combined with neural network [19].
However, the above research lacks the combination of bearing fault feature extraction and optimized algorithm. Therefore, this paper proposes a new bearing fault diagnosis method (Dual Strategy Particle Swarm Optimization BP neural network, DSPSOBP).
The basic principles of BP neural network and PSO algorithm
EMD
In the late 1990s, Huang proposed empirical mode decomposition (EMD). This algorithm can decompose the characteristics of the signal itself, adaptively decompose the frequency components of different scales in the non-stationary signal in turn, and decompose them into several intrinsic mode functions (IMF), The decomposition order of these IMF functions is from high frequency to low frequency. These IMF components can reflect the inherent properties of the original signal.
The decomposition formula of EMD algorithm is as follows:
Where x (t) is the signal, c i is the IMF component and r n is the residual component.
This paper also uses the correlation principle to screen the IMF components. The calculation formula of the correlation coefficient is as follows:
Where x (i) and y (i) are two time series, i is the sequence length, and the value range is (0, n).
BP neural network is the most basic neural network, usually three-layer structure, namely input layer, hidden layer, output layer. The basic network structure is shown in Fig. 1. In the forward training application, the samples will be conducted layer by layer in order, the order is: input layer ->hidden layer ->output layer. If there is a big gap between the output result and the expected value, the second learning process-error back propagation will begin. That is, the weight and threshold of the neural network are adjusted repeatedly through the error function until a satisfactory result is obtained.
The main idea of the BP algorithm is to divide learning into four processes: the mode propagation process, the input mode propagating from the input layer through the hidden layer to the output layer; the process of error back propagation, the expected output of the network and the network reality The error signal of the output difference, if the error signal is relatively large, the back propagation process of the connection weight error will be corrected layer by layer from the output layer through the hidden layer to the input layer; the memory training process, from the mode forward propagation and the error backward propagation The memory training process is repeated alternately and the weights are continuously adjusted; in the state of learning convergence, the network will tend to converge, that is, the global error of the network tends to the minimum value, or the process of ending at the preset learning times.
Due to space reasons, only two important formulas are listed. The first formula belongs to the forward propagation process, and the second formula belongs to the back propagation process.

BP neural network structure diagram.
The forward transmission output layer formula of BP neural network is as follows:
The reverse transmission output layer formula of BP neural network is as follows:
Where E j is the error value of the jth node, O j is the output value of the jth node, and T j records the output value.
Because of its universality, BP neural network can be applied to many fields, but it has some disadvantages to directly use BP neural network to establish rolling bearing fault diagnosis model, so it needs to be optimized.
Particle Swarm Optimization (PSO) was originally proposed by American scholars Dr. Kennedy and Dr. Eberhart. PSO can intelligently evolve the group, and realizes the search for the optimal solution in the complex space through the cooperation and competition between each particle in the swarm. The difference from ordinary algorithms, PSO adopts an easy-to-operate speed-displacement model, and inherits the global search strategy based on the group. Its memory function can save the search situation of each particle and improve the optimization ability.
PSO initialization is a very important process in the particle swarm algorithm. A group of random particles are continuously updated through continuous iteration. The key to each update lies in two extreme values. One extreme value is the optimal solution of the particle itself, namely pbest, and the other One is the optimal solution of the entire population, namely gbest.
The formula for particle update speed is as follows:
The formula for particle update position is as follows:
v [] is the velocity of the particle, present[] is the position of the current particle, pbest[] is the individual extreme value, gbest[] is the global extreme value, rand() is a random number between (0,1), c1 and c2 are learning factors, usually c1 = c2 = 2.
According to the PSO algorithm process discussed in the previous chapter, learning factors play a vital role in the whole algorithm process. Therefore, for the optimization of learning factors, two optimization strategies are proposed and Dual Strategy Particle Swarm Optimization algorithm (DSPSO) is established.
According to the original method of giving parameters, it will have an impact on the learning ability of particles. This method sets the parameters c1 and c2. The initial and final values are c1∈ (2.75, 1.25) and c2∈ (0.5, 2.25), respectively. The function expression that changes according to the linear law is as follows:
Where c1max and c2max are the initial values of c1 and c2, c1min and c2min are the final values of c1 and c2, T is the maximum value of the population in the iterative process, and t is the current iteration number of the population.
In addition to the linear improvement method mentioned in the above method, the arcsin improvement strategy can also be used. The characteristic of the arcsin strategy is to accelerate the change of c1 and c2, so as to perform a local search quickly in the initial stage. It is a more ideal strategy to set the value of c1 and c2 linearly in the future. The initial and final values of c1 and c2 are ∈ (2.75, 1.25) and ∈ (0.5, 2.25), respectively. The relevant formula for the arcsin acceleration factor is shown below:
The general flow of the improved PSO algorithm is shown in Fig. 2.

DSPSO algorithm flow chart.
The swarm intelligence of particle swarm algorithm determines that it can optimize the BP neural network. There are two main optimization methods: one method is to optimize the weight and threshold; the other method is to optimize the network structure. Network structure optimization is more complicated than network weight optimization and threshold optimization, and the change of network structure will affect the change of PSO algorithm solution space dimension, which will become more difficult to implement. In addition, it will also affect the rate of convergence during operation. Therefore, this paper chooses the BP network method that can optimize the network connection weight and threshold at the same time.
The Double Strategy Particle Swarm Optimization algorithm established in the previous chapter is used to optimize the BP neural network and optimize the weight and threshold of BP neural network, so as to make BP neural network have better performance and better participate in the process of rolling bearing fault diagnosis. This method is Double Strategy Particle Swarm Optimization BP neural network (DSPSOBP). The process of this method is as follows:
Step1: Initialization work. In the initialization work, it is mainly divided into two steps: the first step is to determine the structure of the BP neural network, that is, the number of layers and the number of nodes in each layer; the second step is to determine the parameters, the number of particles, inertia weight, speed, Parameters such as position, maximum number of iterations and acceleration constant are initialized;
Step2: Evaluation work. Select the mean square error as the evaluation standard, calculate the fitness value of the particle, and set the global optimal value to the current value, then the extreme value corresponding to the particle is the optimal value of the BP neural network in the next iteration, and the iteration starts;
Step3: Extreme value update work. After calculating the fitness value of each particle, compare the fitness value with the current value of the particle. If the fitness value of the particle has a better performance than the current value, it will be set to the current value and the extreme value will be updated; If the best extreme value of all particles has better performance than the global extreme value, it will be set to the current value and the global extreme value will be updated;
Step4: Inspection work. After optimizing the weights and thresholds, the BP neural network continues to train, and the weights and thresholds are adjusted through the iterative process of the BP neural network. If the MSE meets the desired index, the optimized weights and thresholds are set as the optimal Solution; otherwise, return to the evaluation work and continue to iterate until the conditions for stopping the iteration are met.
The framework of DSPSOBP method is shown in Fig. 3.

DSPSOBP flow chart.
This section mainly uses experiments to verify the effectiveness and accuracy of the diagnostic method (DSPSOBP). The experimental data used comes from Case Western Reserve University [23]. The 6205-2RS JEM SKF deep groove ball bearing is employed in the experiment. In this bearing, the internal diameter is 25mm, the external diameter is 52mm and thickness is 15mm. The method used in the experiment is the electric spark method. The motor load is 0. Then sample the data,and the data of three fault states (inner ring, outer ring, rolling element) are collected. The sampled original vibration signal is divided into 640 data samples. The number of samples of the vibration signal in the three fault states is all 180, and the number of samples of the vibration signal in the normal state is 100.
The experiment uses the EMD method to decompose the three kinds of fault vibration signals. The IMF component is selected according to the correlation principle. The correlation principle is to calculate the relationship between each IMF component and the original signal according to the correlation coefficient, so as to select the IMF component. The threshold is set to one tenth of the maximum value of the correlation coefficient series. The calculation results of correlation coefficient are shown in Table 1. According to the calculation result sequence of correlation coefficient, the first eight IMF components can be extracted.And respectively calculate the energy of the first eight IMF components and the instantaneous amplitude of the bearing under different conditions. The energy of instantaneous amplitude is calculated and used as the input failure feature vector of DSPSOBP method. The fault feature vector is shown in Table 2, and the empirical mode decomposition diagram is shown in Fig. 4. Due to space constraints, only part of the sample is given. The obtained feature vectors of bearings in different states are randomly divided into training samples and test samples. The number of training samples under the three fault states is 144 and the number of test samples is 36. The number of training samples under normal conditions is 80 and the number of test samples is 20. Training samples are used to build fault diagnosis models, and test samples are used to test fault diagnosis models.

Empirical mode decomposition diagram.
Fault feature vector table
Fault feature vector table
Comparison chart of fault diagnosis result
Next, the comparison of the experimental results was carried out. The BP and PSO-BP methods were compared with the DSPSOBP method and compared with other documents. The comparison of the diagnosis results is shown in Table 3 and Fig. 5. Some comparative data are from the literature [22]. The environment followed is: Inter CPU 2.30GHz, 8.0GB RAM, Matlab2018b, Windows 10 operating system.

Fault diagnosis result diagram.
It can be found from Table 2 and Fig. 5: In the comparison of the three methods of BP method, PSO-BP method and DSPSOBP,we found that the results of the experiment are gradually developing in a good direction. No matter which state, the accuracy of fault diagnosis is gradually improving. And achieve the relatively best diagnosis result in the DSPSOBP method. At the same time, through comparison with other documents, we found that the improved algorithm has a greater improvement than other algorithms. Therefore, the DSPSOBP method is effective and can effectively diagnose bearing faults.
This paper mainly optimizes the BP neural network used in the field of rolling bearing fault diagnosis. Firstly, this paper adds the signal analysis and processing process, namely EMD decomposition process, to the basic model of BP neural network fault diagnosis. Secondly, this paper proposes the Dual Strategy Particle Swarm Optimization method (DSPSO), and uses this method to optimize the BP neural network, and establishes the Dual Strategy Particle Swarm Optimization BP neural network (DSPSOBP). Experiments show that the BP neural network based on DSPSO has stronger advantages than the basic model of BP neural network fault diagnosis. Experiments show the effectiveness of the optimization method and the effectiveness of DSPSO in BP neural network optimization.
Footnotes
Acknowledgments
This work has been supported by National Natural Science Foundation of China (No. 52175379).
