Keywords

2.1 Introduction

With the acceleration of urbanization, the number of high-rise and super high-rise buildings is increasing; meanwhile, there is a growing pursuit of building functionality and comfort in the residence and office. Due to the rapid development of electronic communication and network technology, building electrical system is moving in the development of large-scale, complex structure, including lighting, power, and control in one large intelligent system, so that building electrical system failure will bring great inconvenience to people’s work and lives. Even some serious accident of electricity would threaten property and personal safety, therefore security and reliability have become a major issue in the current building electrical.

Building electrical system failure can be divided into two categories: electrical equipment faults and the line faults. Traditional building electrical system failures were most manually detected by the electrician to identify the location of the faults, and then replace the line or components. Manual detection often rely on personal experience of maintenance electrician, but for the increasingly complex coupling relationship exists between the various subsystems, modern building electrical system need to put forward a new intelligent fault diagnosis method.

The neural network is an important way to solve the fault diagnosis problem, through the effective training of the neural network can remember the process of knowledge, learn directly from the historical data, and make it suitable for online detection and fault diagnosis. It has the ability to distinguish the cause of the malfunction and the type of fault. In fact, the neural network technology has become a valid means of fault diagnosis. Radial basis function neural network (RBFNN) which rely on its simple network structure and fast training procedure, received extensive attention in many areas. This paper presents a fault diagnosis method for complex building electrical system based on RBF network. This method can quickly identify and determine the type of failure, and can diagnose the same category of the new faults. From engineering point of view, it has a good practical application value and bright prospect.

2.2 Basic Principles of RBF Neural Network Algorithm

2.2.1 The Basic Concepts of the RBF Network

Radial Basis Function (RBF) is a kind of neural network function whose independent variables are the distance to a fixed point. In the two-dimensional Euclidean space, the distance is:

$$ r_{k} = r_{k} (x,y,x^{(k)} ,y^{(k)} ) = \sqrt {(x - x^{(k)} )^{2} + (y - y^{(k)} )^{2} } $$
(2.1)

\( r_{k} \) is the independent variable of radial basis function, denoted \( \phi^{(k)} (r_{k} ) \), \( (x,y) \) is arbitrary coordinates of the Euclidean space, \( (x^{(k)} ,y^{(k)} ) \) is the coordinates of the fixing points \( k \), known as the center of the radial basis function, radial basis function \( \phi (r) \) is generally divided into two categories: local and overall. If \( \mathop {\lim }\limits_{r \to \infty } \phi (r) \) is zero, called a local radial basis function, otherwise it is called the overall radial basis function. Local radial basis function interpolate in the center of the input data area, while the overall radial basis function can interpolate globally.

2.2.2 Principle of RBF Network

RBF network is a three-layer network structure, as shown in Fig. 2.1, the three layers include the input layer, hidden layer and output layer. The input layer to the hidden layer is nonlinear mapping and output layer is linear weight sum of the hidden layer unit, so it is a linear mapping.

Fig. 2.1
figure 1

RBF neural network diagram

The hidden layer of RBF network takes radial basis function as the activation function, and this function is usually Gaussian function, when the input sample is \( x \), the output of the \( i \) unit of the hidden layer is as follows:

$$ R_{i} (x) = e^{{ - \frac{{\left\| {x - c_{i} } \right\|^{2} }}{{2\sigma_{i}^{2} }}}} \quad i = 1,2, \ldots ,L $$
(2.2)

Wherein, \( c_{i} \) is a base function center, \( \sigma_{i} \) is the width of the Gaussian function in hidden layer unit \( i \), the output of the corresponding output node is:

$$ Y = \sum\limits_{i = 1}^{L} {W_{i} R_{i} (x)} $$
(2.3)

\( W_{i} \) represent hidden layer \( i \) to the output layer weights. When the input sample is at the farther distance from the center, the lower degree of neurons is activating, and when it more than a certain distance, the neurons will not be activated. Therefore, for the RBF neural network, each hidden layer node has a data center.

In the neural network fault diagnosis algorithm, the input general is corresponding to the fault features, and the output node are the causes and reasons of the fault. The fault samples are used to network training, so as to make sure the structure of network, and reference value, such as neuron weights and threshold value. After training, the process of setting nonlinear mapping between fault features and fault set is complete. Standard model of fault diagnosis system is shown as Fig. 2.2. Testing point selection is very important to the fault diagnosis result, especially to large and complex system which includes electric circuit; this topic will be discussed in another paper.

Fig. 2.2
figure 2

Standard model of fault diagnosis system

2.3 In the Application of the Building Electrical Fault Diagnosis

2.3.1 Introduction of Building Electrical Test Platform

The METREL Building Electrical Testing Experimental Systems is original made in German. It is actually an integration of constructions electrical elements which are concentrated in a test platform. It has brought great convenience to the construction of electrical test experiment. The physical model of electrical test platform is shown as Fig. 2.3.

Fig. 2.3
figure 3

Physical model of electrical test platform

In Fig. 2.3, the construction of low-voltage distribution system is composed of a variety of elements, such as circuit breakers, fuses, single-phase sockets and three-phase sockets. Power supply of the electrical test platform is 220 V and 50 Hz mains, and the transformer output 15 V DC to the weak protection part and the fault setting control board. The fault setting panel can provide five categories of common household electricity insulation test failures and the 22 faults location button, which completely simulate civilian residential electrical systems and common faults in the real life.

2.3.2 Basic Methods of Diagnosis

The basic idea of fault diagnosis that base on RBF neural network is use fault features as network input and diagnostic result as network output, apply a large amount of historical fault data to network offline training, so that the specific corresponding relationship between the network and the right weight value that remember fault symptoms and corresponding fault type can be set up.

According to the various fault signals collected by the monitoring and data acquisition system, the input layers are fault data, because there are odd data in the collected set, normalization process should be operate according to the formula 3.1 firstly.

$$ y = \frac{x - MinValue}{MaxValue - MinValue} $$
(3.1)

Fault feature vector is \( X = [x_{1} ,x_{2} , \ldots ,x_{n} ] \). Intermediate layer input layer get input information and transform into a targeted solution by internal learning to complete the non-linear mapping of input to the output. The output layer is a vector of the failure mode, through comparing with a threshold value; the diagnostic result can be obtained. In this case, the total number of the failed node are 10 and the fault type respectively are the line impedance fault, the continuity fault, the grounding resistance abnormal and ground resistivity insulation resistance is too small. From the above, five categories failure will occur stochastic at 10 fault location. In every output vector, the judging rule is that number 0 indicating no failure, 1 indicates a failure. So the fault encoding state are Line impedance fault (1,0,0,0,0), Continuity fault (0,1,0,0,0), Grounding resistance anomalies (0,0,1,0,0), Grounding resistivity anomalies (0,0,0,1,0), Insulation resistance too small (0,0,0,0,1).

2.3.3 The RBF Network Design and Training

Firstly, using the algorithm of random selection to select the center of RBF network, and the center of the hidden unit is in the data of the input sample, and fix the center.

There are generally two methods to determine the number of hidden layer neurons of RBF network training, the commonly used method is the input vector elements are equal to the number of neuron, however, when there are more of the input vectors this method will result in excessive number of hidden layer units so that the network structure more complicated. Another method does not need to be determined the number directly, but through the training and optimization to calculate the number of neurons, the way of the second methods is setting the number of nodes of the hidden layer to 0 and then start training by checking the input error, automatically increase the hidden layer neurons. Cumulative iterative loop, so that the network produces the maximum error of the corresponding input vector as a weight vector, resulting in a new hidden layer neuron, then check the error of the new network, repeating this processes until reach the error requirements or maximum hidden layer number of neurons.

The actual collection sample data are 90 groups, also 30 groups of collected data are used to test and there are some excerpts of the collected samples in the Table 2.1. It includes five kinds of failure modes and each sample has 10 position characteristic parameters. So the number of neurons in the input layer is 10, while output neurons number is 5. The number of hidden layer is not fixed, and it will adjust after several constantly training tests. The corresponding network training output and fault diagnosis results is as shown in Table 2.2 (Fig. 2.4).

Table 2.1 RBF neural network training input samples
Table 2.2 RBF actual output of the neural network diagnostic results
Fig. 2.4
figure 4

Structure of RBF fault diagnosis model of building electrical system

Fig. 2.5
figure 5

RBF training result

Fig. 2.6
figure 6

BP training result

2.4 Comparison and Analysis of the Experimental Test Result

In order to stress the training effect, using BP network as a comparison objective. The process of set up BP network is little complicated than RBF. In order to make the training get best training effect, the parameters of the BP network should be change continually. The number of neurons in the hidden layer of BP network which selected according to multiple test and experience are 15 Figs. 2.7, 2.8.

Fig. 2.7
figure 7

RBF network fault identification

Fig. 2.8
figure 8

BP network fault identification

The Figs. 2.5 and 2.6 are the training curve of RBF and BP network. In the figures, X axis is training epochs, Y axis is system error. In order to compare effectiveness, set error goal is 10e-4. According to the simulation results shown in Figs. 2.5 and 2.6, it can be seen that when the error of BP network is 10e-4, training epochs are 3,161, while RBF network just takes 8 epochs. During the training, even if the entire parameters of BP network have been determined, every training result is different, while the result of RBF network is more stable and not easy to fall into local minimum, when all the parameters are determined.

In addition, RBF network compared with BP network, the output layer is linear weight sum of hidden units and its learning speed is faster than the BP network, however, due to its generally radial basis function using a Gaussian function as the activation function, the input space area is small, so it need set more radial basis neurons. On the whole, RBF network structure is easier to build, and training speed is fast and stable. In the case of building electrical system fault diagnosis, the RBF neural network is superior to BP neural network.

2.5 Conclusion and Outlook

The application of artificial neural network in building electrical system fault diagnosis, the RBF neural network is able to determine the fault type accurately and quickly. This approach verified by building electrical data acquisition and test platform which was research and development by Electrical and intelligent Experimental Center of Beijing University of Civil Engineering and Architecture. Especially, this equipment cooperate the method of RBF fault diagnosis can monitor the real-time status of critical node. Believe in the near future, this method’s advantages, such as early detection and troubleshooting can play a good role, and it will have broad application prospects.