Fault Diagnosis for Wireless Sensor by Twin Support Vector Machine

Various data mining techniques have been applied to fault diagnosis for wireless sensor because of the advantage of discovering useful knowledge from large data sets. In order to improve the diagnosis accuracy of wireless sensor, a novel fault diagnosis for wireless sensor technology by twin support vector machine (TSVM) is proposed in the paper. Twin SVM is a binary classifier that performs classification by using two nonparallel hyperplanes instead of the single hyperplane used in the classical SVM. However, the parameter setting in theTSVMtraining procedure significantly influences the classification accuracy.Thus, this study introduces PSO as an optimization technique to simultaneously optimize the TSVM training parameter.The experimental results indicate that the diagnosis results for wireless sensor of twin support vector machine are better than those of SVM, ANN.


Introduction
In the past years, various data mining techniques including artificial neural networks have been applied to fault diagnosis for wireless sensor because they have the advantages of discovering useful knowledge from large data sets [1][2][3][4][5].Though fault diagnosis for wireless sensor based on artificial neural networks can show encouraging results, there are also many problems that need to be solved, such as local optimization and overfitting in the artificial neural networks [6][7][8][9][10][11]. Support vector machine (SVM), based on structure risk minimization principle can use nonlinear mapping to transform an input space to a high-dimension space based on an internal integral function and then looks for a nonlinear relationship between inputs and outputs in that space [12][13][14].SVM can find global optimum solutions for problems with small training samples, high dimensions, nonlinear [15,16].Twin SVM is a binary classifier that performs classification by using two nonparallel hyperplanes instead of the single hyperplane used in the classical SVM.However, the choice of the training parameters has a heavy impact on the classification accuracy of twin support vector machine.Particle swarm optimization is an evolutionary computation technique, which is inspired by social behavior among individuals.Thus, particle swarm optimization is used to optimize the TSVM parameters.
In the study, a novel classification method by twin support vector machine (PSO-TSVM) is proposed to fault diagnosis for wireless sensor, where particle swarm optimization is to find the optimal settings of parameters of SVM.Then, we collect 260 samples to study the diagnosis performance of twin support vector machine classifier, where 170 of them are used to train the diagnosis model of twin support vector machine classifier, and others are used to test the diagnosis performance of twin support vector machine classifier.The experimental results indicate that the diagnosis results for wireless sensor of twin support vector machine are better than those of SVM, ANN.

Twin Support Vector Machine
Based the Karush-Kuhn-Tucker theorem of optimization theory [17,18], the nonlinear decision function is: The most commonly used kernel function is the radial basis function (RBF) kernel, which can be reproduced as follows: where  is a positive real number.The nonlinear TWSVM seeks two nonparallel hyperplane in   : For finding the hyperplanes, it is required to get the solutions to the primal problems. Minimize subject to And minimize subject to where  1 ,  2 are the punishment parameters and  1 ,  2 are vectors of ones of appropriate dimensions.

Parameters Optimization of TSVM by PSO
Particle swarm optimization is an evolutionary computation technique, which is inspired by social behavior among individuals.Each particle moves in the direction of its previously best position and its best global position during each generation [19][20][21].Thus, particle swarm optimization is used to optimize the TSVM parameters.
In the study, we use the RBF kernel function for the TSVM classifier because the RBF kernel function can analyze higher-dimensional data, and TSVM with RBF kernel function only has two parameters,  and  determined.Therefore, the particle is comprised of two parts,  and , when the RBF kernel is selected.The process of optimizing the TSVM parameters with PSO can be summarized as follows.
Step 1. Randomly generate initial population, initial particle and initial velocity.Step 2. Set the learning parameters  1 and  2 , the inertia weight , and the maximum number of iterations.
Step 3. Fitness evaluation: the fitness function is defined as the following formula: where  denotes the correct classification and  denotes the false classification.
Step 4. Update velocity and position of the particle.
Step 5.If maximum iterations predefined are met, the program is stopped.Otherwise, go to Step 3.

Experimental Study for Fault Diagnosis of Wireless Sensor
In  study the diagnosis performance of twin support vector machine classifier, where 170 of them are used to train the diagnosis model of twin support vector machine classifier, and others are used to test the diagnosis performance of twin support vector machine classifier.Some of the experimental data are given in Table 1.
Figure 5 gives the diagnosis results of twin support vector machine, state types of wireless sensor including normal state, shock, biasing, short circuit, and shifting are given in Figure 5, which are denoted as 1 ∼ 5, respectively; Figure 6 gives the diagnosis results of the support vector machine; Figure 7 gives the diagnosis results of artificial neural network.The number of incorrect diagnosis of TSVM, SVM, and ANN is 96.7, 91.1, 83.3, respectively.The comparison of the diagnosis results for wireless sensor among TSVM, SVM,   and ANN is given in Table 2.Then, we can conclude that the diagnosis results of twin support vector machine are better than those of SVM and ANN in the fault diagnosis of wireless sensor.

Conclusion
A novel classification method by twin support vector machine (TSVM) is proposed to fault diagnosis for wireless sensor in this paper, where PSO is to find the optimal settings of parameters in SVM.In the study, the four fault types of wireless sensor including shock, biasing, short circuit, and shifting are applied to test the diagnosis ability of TSVM compared with other diagnostic methods.The experimental results indicate that the diagnosis results for wireless sensor of twin support vector machine are better than those of SVM and ANN.

Figure 1 :Figure 2 :
Figure 1: The output signal of shock failure.

Figure 3 :Figure 4 :
Figure 3: The output signal of short-circuit failure.

Figure 5 :Figure 6 :
Figure 5: The diagnosis results of twin support vector machine.

Figure 7 :
Figure 7: The diagnosis results of artificial neural network.

Table 1 :
The experimental data.

Table 2 :
The comparison of the diagnosis results for wireless sensor among the three classifiers.